diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-01-13 15:20:32 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-01-13 15:20:32 +0600 |
commit | abb0fcb2035fa96b1ec09f9480838c476527ccd4 (patch) | |
tree | f695596449925f66c7efebde01d4b761c254ce84 /test/run_input.cxx | |
parent | eef4f33a29dfc5d4542b5844ec1c9d90c2b9f908 (diff) | |
download | mpd-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 'test/run_input.cxx')
0 files changed, 0 insertions, 0 deletions