Home | History | Annotate | Download | only in epoc

Lines Matching defs:mutex

31 /* Mutex functions using the Win32 API */
52 /* Create a mutex */
60 SDL_SetError("Couldn't create mutex");
62 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex;
63 mutex->handle = rmutex.Handle();
64 return(mutex);
67 /* Free the mutex */
68 void SDL_DestroyMutex(SDL_mutex *mutex)
70 if ( mutex )
73 rmutex.SetHandle(mutex->handle);
76 delete(mutex);
77 mutex = NULL;
81 /* Lock the mutex */
82 int SDL_mutexP(SDL_mutex *mutex)
84 if ( mutex == NULL ) {
85 SDL_SetError("Passed a NULL mutex");
89 rmutex.SetHandle(mutex->handle);
94 /* Unlock the mutex */
95 int SDL_mutexV(SDL_mutex *mutex)
97 if ( mutex == NULL ) {
98 SDL_SetError("Passed a NULL mutex");
102 rmutex.SetHandle(mutex->handle);