[Scummvm-cvs-logs] CVS: scummvm/backends/gp32 gp32.cpp,1.12,1.13 gp32.h,1.13,1.14

Max Horn fingolfin at users.sourceforge.net
Sat Sep 27 09:55:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/gp32
In directory sc8-pr-cvs1:/tmp/cvs-serv9425/gp32

Modified Files:
	gp32.cpp gp32.h 
Log Message:
OSystem changes: removed create_thread() method (not needed anymore; 'pure' threads aren't very portable anyway, better we only use timers); introduced OSystem::TimerProc type

Index: gp32.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- gp32.cpp	21 Sep 2003 12:10:32 -0000	1.12
+++ gp32.cpp	27 Sep 2003 16:54:09 -0000	1.13
@@ -858,9 +858,6 @@
 	while ( ( GpTickCountGet() - n ) < msecs) ;

 }

 	

-// Create a thread

-void OSystem_GP32::create_thread(ThreadProc *proc, void *param) { }

-	

 // Get the next event.

 // Returns true if an event was retrieved.	

 

@@ -979,7 +976,7 @@
 // Set the function to be invoked whenever samples need to be generated

 // Format is the sample type format.

 // Only 16-bit signed mode is needed for simon & scumm

-bool OSystem_GP32::set_sound_proc(SoundProc *proc, void *param, SoundFormat format) { 

+bool OSystem_GP32::set_sound_proc(SoundProc proc, void *param, SoundFormat format) { 

 	return false; 

 }

 

@@ -1076,7 +1073,7 @@
 void OSystem_GP32::update_cdrom() { }

 

 // Add a new callback timer

-void OSystem_GP32::set_timer(int timer, int (*callback)(int)) { }

+void OSystem_GP32::set_timer(TimerProc callback, int timer) { }

 

 // Mutex handling

 OSystem::MutexRef OSystem_GP32::create_mutex() {


Index: gp32.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- gp32.h	18 Sep 2003 02:07:15 -0000	1.13
+++ gp32.h	27 Sep 2003 16:54:09 -0000	1.14
@@ -73,9 +73,6 @@
 	// Delay for a specified amount of milliseconds

 	void delay_msecs(uint msecs);

 	

-	// Create a thread

-	void create_thread(ThreadProc *proc, void *param);

-	

 	// Get the next event.

 	// Returns true if an event was retrieved.	

 	bool poll_event(Event *event);

@@ -83,7 +80,7 @@
 	// Set the function to be invoked whenever samples need to be generated

 	// Format is the sample type format.

 	// Only 16-bit signed mode is needed for simon & scumm

-	bool set_sound_proc(SoundProc *proc, void *param, SoundFormat format);

+	bool set_sound_proc(SoundProc proc, void *param, SoundFormat format);

 	void clear_sound_proc();

 	

 	// Get or set a property

@@ -103,7 +100,7 @@
 	void update_cdrom();

 

 	// Add a new callback timer

-	void set_timer(int timer, int (*callback)(int));

+	void set_timer(TimerProc callback, int timer);

 

 	// Mutex handling

 	OSystem::MutexRef create_mutex();






More information about the Scummvm-git-logs mailing list