[Scummvm-cvs-logs] CVS: scummvm/sound mpu401.cpp,1.9,1.10

Max Horn fingolfin at users.sourceforge.net
Thu May 29 14:30:06 CEST 2003


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv25836/sound

Modified Files:
	mpu401.cpp 
Log Message:
added TODO: get rid of create_thread

Index: mpu401.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mpu401.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mpu401.cpp	19 May 2003 17:45:21 -0000	1.9
+++ mpu401.cpp	29 May 2003 21:29:54 -0000	1.10
@@ -119,8 +119,13 @@
 	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;
 	}
 }





More information about the Scummvm-git-logs mailing list