Lines Matching defs:lock
43 SDL_mutex *lock;
54 SDL_mutex *lock;
65 /* Grab lock and spin until we're sure event thread stopped */
66 SDL_mutexP(SDL_EventLock.lock);
75 SDL_mutexV(SDL_EventLock.lock);
128 On the P of the lock mutex, if the lock is held, this thread
129 will wait until the lock is released before continuing. The
135 SDL_mutexP(SDL_EventLock.lock);
137 SDL_mutexV(SDL_EventLock.lock);
150 /* Create the lock and set ourselves active */
152 SDL_EventQ.lock = SDL_CreateMutex();
153 if ( SDL_EventQ.lock == NULL ) {
154 #ifdef __MACOS__ /* MacOS classic you can't multithread, so no lock needed */
164 SDL_EventLock.lock = SDL_CreateMutex();
165 if ( SDL_EventLock.lock == NULL ) {
193 SDL_DestroyMutex(SDL_EventLock.lock);
194 SDL_EventLock.lock = NULL;
197 SDL_DestroyMutex(SDL_EventQ.lock);
198 SDL_EventQ.lock = NULL;
233 SDL_EventQ.lock = NULL;
255 /* Create the lock and event thread */
318 /* Lock the event queue, take a peep at it, and unlock it */
328 /* Lock the event queue */
330 if ( SDL_mutexP(SDL_EventQ.lock) == 0 ) {
359 SDL_mutexV(SDL_EventQ.lock);
361 SDL_SetError("Couldn't lock event queue");