Home | History | Annotate | Download | only in symbian

Lines Matching refs:mutex

35 /* Mutex functions using the Win32 API */
72 /* Create a mutex */
80 SDL_SetError("Couldn't create mutex");
82 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex;
83 mutex->handle = rmutex.Handle();
84 EpocSdlEnv::AppendCleanupItem(TSdlCleanupItem(DeleteMutex, mutex));
85 return(mutex);
88 /* Free the mutex */
89 void SDL_DestroyMutex(SDL_mutex *mutex)
91 if ( mutex )
94 rmutex.SetHandle(mutex->handle);
100 EpocSdlEnv::RemoveCleanupItem(mutex);
101 delete(mutex);
102 mutex = NULL;
106 /* Lock the mutex */
107 int SDL_mutexP(SDL_mutex *mutex)
109 if ( mutex == NULL ) {
110 SDL_SetError("Passed a NULL mutex");
114 rmutex.SetHandle(mutex->handle);
119 /* Unlock the mutex */
120 int SDL_mutexV(SDL_mutex *mutex)
122 if ( mutex == NULL ) {
123 SDL_SetError("Passed a NULL mutex");
127 rmutex.SetHandle(mutex->handle);