some backend fixes

svn-id: r8812
This commit is contained in:
Max Horn 2003-07-06 18:56:19 +00:00
parent 36bf6e09d3
commit 9875983336
3 changed files with 6 additions and 6 deletions

View File

@ -562,7 +562,7 @@ void OSystem_PALMOS::set_timer(int timer, int (*callback)(int))
}
/* Mutex handling */
MutexRef OSystem_PALMOS::create_mutex()
OSystem::MutexRef OSystem_PALMOS::create_mutex()
{
return NULL;
}

View File

@ -316,7 +316,7 @@ void OSystem_MorphOS::create_thread(ThreadProc *proc, void *param)
NP_PPC_Arg1, (ULONG) param, TAG_DONE);
}
MutexRef OSystem_MorphOS::create_mutex()
OSystem::MutexRef OSystem_MorphOS::create_mutex()
{
SignalSemaphore *sem = (SignalSemaphore *) AllocVec(sizeof (SignalSemaphore), MEMF_PUBLIC);

View File

@ -1744,18 +1744,18 @@ void OSystem_WINCE3::update_cdrom() {;}
//void ScummDebugger::attach(Scumm *s) {;}
/* Mutex stuff */
MutexRefOSystem_WINCE3::create_mutex() {
OSystem::MutexRef OSystem_WINCE3::create_mutex() {
return (MutexRef)CreateMutex(NULL, FALSE, NULL);
}
void OSystem_WINCE3::lock_mutex(MutexRefhandle) {
void OSystem_WINCE3::lock_mutex(MutexRef handle) {
WaitForSingleObject((HANDLE)handle, INFINITE);
}
void OSystem_WINCE3::unlock_mutex(MutexRefhandle) {
void OSystem_WINCE3::unlock_mutex(MutexRef handle) {
ReleaseMutex((HANDLE)handle);
}
void OSystem_WINCE3::delete_mutex(MutexRefhandle) {
void OSystem_WINCE3::delete_mutex(MutexRef handle) {
CloseHandle((HANDLE)handle);
}