From 417ec3a58816cbfd6c880b84474581a8e07bc40e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 29 May 2003 21:29:54 +0000 Subject: added TODO: get rid of create_thread svn-id: r8115 --- sound/mpu401.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sound') 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; } } -- cgit v1.2.3