aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorRuediger Hanke2003-08-23 18:03:17 +0000
committerRuediger Hanke2003-08-23 18:03:17 +0000
commit191c4b9b8ee31589f8cb96e24d1eec0a38236c82 (patch)
treeee08d7b23dca91d08e464d2e3575e1069dcde1dd /backends
parentfda9c872188128862936da88f2a1ec41af5d5dd9 (diff)
downloadscummvm-rg350-191c4b9b8ee31589f8cb96e24d1eec0a38236c82.tar.gz
scummvm-rg350-191c4b9b8ee31589f8cb96e24d1eec0a38236c82.tar.bz2
scummvm-rg350-191c4b9b8ee31589f8cb96e24d1eec0a38236c82.zip
use startup message, avoid possible race condition on exit
svn-id: r9833
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/morphos.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/backends/midi/morphos.cpp b/backends/midi/morphos.cpp
index 2cdc8aa258..b5181f098c 100644
--- a/backends/midi/morphos.cpp
+++ b/backends/midi/morphos.cpp
@@ -105,8 +105,6 @@ int MidiDriver_MPU401::midi_driver_thread(void *param)
// detected the shutdown and quit looping.
g_system->lock_mutex(mid->_mutex);
- ObtainSemaphore(&ScummMusicThreadRunning);
-
if (!OSystem_MorphOS::OpenATimer(&music_timer_port, (IORequest **) &music_timer_request, UNIT_MICROHZ, false)) {
warning("Could not open a timer - music will not play");
Wait(SIGBREAKF_CTRL_C);
@@ -135,7 +133,6 @@ int MidiDriver_MPU401::midi_driver_thread(void *param)
DeleteMsgPort(music_timer_port);
}
- ReleaseSemaphore(&ScummMusicThreadRunning);
g_system->unlock_mutex(mid->_mutex);
return 0;
}