Searched defs:cag (Results 1 - 1 of 1) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/cdrom/macosx/
H A DSDLOSXCAGuard.c94 static int SDLOSXCAGuard_Lock(SDLOSXCAGuard *cag) argument
98 if(pthread_self() != cag->mOwner)
100 OSStatus theError = pthread_mutex_lock(&cag->mMutex);
103 cag->mOwner = pthread_self();
110 static void SDLOSXCAGuard_Unlock(SDLOSXCAGuard *cag) argument
113 assert(pthread_self() == cag->mOwner);
115 cag->mOwner = 0;
116 theError = pthread_mutex_unlock(&cag->mMutex);
121 static int SDLOSXCAGuard_Try (SDLOSXCAGuard *cag, int *outWasLocked) argument
126 if (pthread_self() == cag
141 SDLOSXCAGuard_Wait(SDLOSXCAGuard *cag) argument
154 SDLOSXCAGuard_Notify(SDLOSXCAGuard *cag) argument
165 SDLOSXCAGuard *cag = (SDLOSXCAGuard *) SDL_malloc(sizeof (SDLOSXCAGuard)); local
190 delete_SDLOSXCAGuard(SDLOSXCAGuard *cag) argument
[all...]

Completed in 205 milliseconds