From 4611b12c0a84ec528f9f020dc85bf4e9a0108c82 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 5 Jul 2003 15:17:46 +0000 Subject: updated backends to use type MutexRef svn-id: r8776 --- backends/wince/wince.cpp | 10 +++++----- backends/wince/wince.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'backends/wince') diff --git a/backends/wince/wince.cpp b/backends/wince/wince.cpp index de34d533ed..eb4c1eff6e 100644 --- a/backends/wince/wince.cpp +++ b/backends/wince/wince.cpp @@ -1744,18 +1744,18 @@ void OSystem_WINCE3::update_cdrom() {;} //void ScummDebugger::attach(Scumm *s) {;} /* Mutex stuff */ -void* OSystem_WINCE3::create_mutex() { - return (void*)CreateMutex(NULL, FALSE, NULL); +MutexRefOSystem_WINCE3::create_mutex() { + return (MutexRef)CreateMutex(NULL, FALSE, NULL); } -void OSystem_WINCE3::lock_mutex(void *handle) { +void OSystem_WINCE3::lock_mutex(MutexRefhandle) { WaitForSingleObject((HANDLE)handle, INFINITE); } -void OSystem_WINCE3::unlock_mutex(void *handle) { +void OSystem_WINCE3::unlock_mutex(MutexRefhandle) { ReleaseMutex((HANDLE)handle); } -void OSystem_WINCE3::delete_mutex(void *handle) { +void OSystem_WINCE3::delete_mutex(MutexRefhandle) { CloseHandle((HANDLE)handle); } diff --git a/backends/wince/wince.h b/backends/wince/wince.h index 1b369caeed..411e169d89 100644 --- a/backends/wince/wince.h +++ b/backends/wince/wince.h @@ -159,10 +159,10 @@ public: // Mutex functions - void* create_mutex(); - void lock_mutex(void*); - void unlock_mutex(void*); - void delete_mutex(void*); + MutexRef create_mutex(); + void lock_mutex(MutexRef); + void unlock_mutex(MutexRef); + void delete_mutex(MutexRef); // Windows callbacks & stuff static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); -- cgit v1.2.3