aboutsummaryrefslogtreecommitdiffstats
path: root/src/CommandListBuilder.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-01-13 15:20:32 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-01-13 15:20:32 +0600
commitabb0fcb2035fa96b1ec09f9480838c476527ccd4 (patch)
treef695596449925f66c7efebde01d4b761c254ce84 /src/CommandListBuilder.cxx
parenteef4f33a29dfc5d4542b5844ec1c9d90c2b9f908 (diff)
downloadmpd-abb0fcb2035fa96b1ec09f9480838c476527ccd4.tar.gz
mpd-abb0fcb2035fa96b1ec09f9480838c476527ccd4.tar.xz
mpd-abb0fcb2035fa96b1ec09f9480838c476527ccd4.zip
Win32Main.cxx: more clean shutdown
This change fixes two issues: 1) console_handler is called from a separate thread. Thread-safe primitive is required for correct operation. 2) If console_handler returns TRUE our process is immediately terminated. We use Sleep() to give main thread an opportunity to shutdown correctly.
Diffstat (limited to 'src/CommandListBuilder.cxx')
0 files changed, 0 insertions, 0 deletions