diff options
Diffstat (limited to 'backends/morphos/morphos.cpp')
-rw-r--r-- | backends/morphos/morphos.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/morphos/morphos.cpp b/backends/morphos/morphos.cpp index ebfd651c54..b316f1b97c 100644 --- a/backends/morphos/morphos.cpp +++ b/backends/morphos/morphos.cpp @@ -316,27 +316,27 @@ void OSystem_MorphOS::create_thread(ThreadProc *proc, void *param) NP_PPC_Arg1, (ULONG) param, TAG_DONE); } -void *OSystem_MorphOS::create_mutex() +MutexRef OSystem_MorphOS::create_mutex() { SignalSemaphore *sem = (SignalSemaphore *) AllocVec(sizeof (SignalSemaphore), MEMF_PUBLIC); if (sem) InitSemaphore(sem); - return sem; + return (MutexRef)sem; } -void OSystem_MorphOS::lock_mutex(void *mutex) +void OSystem_MorphOS::lock_mutex(MutexRef mutex) { ObtainSemaphore((SignalSemaphore *) mutex); } -void OSystem_MorphOS::unlock_mutex(void *mutex) +void OSystem_MorphOS::unlock_mutex(MutexRef mutex) { ReleaseSemaphore((SignalSemaphore *)mutex); } -void OSystem_MorphOS::delete_mutex(void *mutex) +void OSystem_MorphOS::delete_mutex(MutexRef mutex) { FreeVec(mutex); } |