diff options
author | Max Horn | 2003-05-29 21:29:54 +0000 |
---|---|---|
committer | Max Horn | 2003-05-29 21:29:54 +0000 |
commit | 417ec3a58816cbfd6c880b84474581a8e07bc40e (patch) | |
tree | 01e56b793446045ae0d4ff50a631a0e07e28fbff /sound | |
parent | cc2ecbd7254ecff250eb7f9c7e45dfb2c666231c (diff) | |
download | scummvm-rg350-417ec3a58816cbfd6c880b84474581a8e07bc40e.tar.gz scummvm-rg350-417ec3a58816cbfd6c880b84474581a8e07bc40e.tar.bz2 scummvm-rg350-417ec3a58816cbfd6c880b84474581a8e07bc40e.zip |
added TODO: get rid of create_thread
svn-id: r8115
Diffstat (limited to 'sound')
-rw-r--r-- | sound/mpu401.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/mpu401.cpp b/sound/mpu401.cpp index 5d8d6cd269..0a2e0c42ca 100644 --- a/sound/mpu401.cpp +++ b/sound/mpu401.cpp @@ -119,8 +119,13 @@ void MidiDriver_MPU401::setTimerCallback (void *timer_param, void (*timer_proc) if (!_timer_proc || !timer_proc) { _timer_proc = (TimerCallback *) timer_proc; _timer_param = timer_param; - if (!_started_thread && timer_proc) + if (!_started_thread && timer_proc) { + // TODO: This is the only place in ScummVM where create_thread is + // being used. And it's used for a timer like thread. So if we + // could convert it to use the timer API instead, we could get + // rid of create_thread completely. g_system->create_thread(midi_driver_thread, this); + } _started_thread = true; } } |