aboutsummaryrefslogtreecommitdiff
path: root/backends/wince
diff options
context:
space:
mode:
authorMax Horn2003-07-05 15:17:46 +0000
committerMax Horn2003-07-05 15:17:46 +0000
commit4611b12c0a84ec528f9f020dc85bf4e9a0108c82 (patch)
tree8a7f87ffbad997a6873a1a6e75d0d49746e9d69e /backends/wince
parent39abb7cf0a36f348c2755197e18ae2d9edc59eda (diff)
downloadscummvm-rg350-4611b12c0a84ec528f9f020dc85bf4e9a0108c82.tar.gz
scummvm-rg350-4611b12c0a84ec528f9f020dc85bf4e9a0108c82.tar.bz2
scummvm-rg350-4611b12c0a84ec528f9f020dc85bf4e9a0108c82.zip
updated backends to use type MutexRef
svn-id: r8776
Diffstat (limited to 'backends/wince')
-rw-r--r--backends/wince/wince.cpp10
-rw-r--r--backends/wince/wince.h8
2 files changed, 9 insertions, 9 deletions
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);