aboutsummaryrefslogtreecommitdiff
path: root/sound/mpu401.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-29 21:29:54 +0000
committerMax Horn2003-05-29 21:29:54 +0000
commit417ec3a58816cbfd6c880b84474581a8e07bc40e (patch)
tree01e56b793446045ae0d4ff50a631a0e07e28fbff /sound/mpu401.cpp
parentcc2ecbd7254ecff250eb7f9c7e45dfb2c666231c (diff)
downloadscummvm-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/mpu401.cpp')
-rw-r--r--sound/mpu401.cpp7
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;
}
}