HomeSort by relevance Sort by last modified time
    Searched refs:cag (Results 1 - 2 of 2) sorted by null

  /external/qemu/distrib/sdl-1.2.15/src/cdrom/macosx/
SDLOSXCAGuard.c 94 static int SDLOSXCAGuard_Lock(SDLOSXCAGuard *cag)
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)
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)
126 if (pthread_self() == cag->mOwner)
165 SDLOSXCAGuard *cag = (SDLOSXCAGuard *) SDL_malloc(sizeof (SDLOSXCAGuard)); local
    [all...]
SDLOSXCAGuard.h 99 int (*Lock)(struct S_SDLOSXCAGuard *cag);
100 void (*Unlock)(struct S_SDLOSXCAGuard *cag);
101 int (*Try)(struct S_SDLOSXCAGuard *cag, int *outWasLocked); /* returns true if lock is free, false if not */
102 void (*Wait)(struct S_SDLOSXCAGuard *cag);
103 void (*Notify)(struct S_SDLOSXCAGuard *cag);
113 void delete_SDLOSXCAGuard(SDLOSXCAGuard *cag);

Completed in 225 milliseconds