SDL_mutex.h File Reference

#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Defines

#define SDL_MUTEX_TIMEDOUT   1
#define SDL_MUTEX_MAXWAIT   (~(Uint32)0)
#define SDL_LockMutex(m)   SDL_mutexP(m)
#define SDL_UnlockMutex(m)   SDL_mutexV(m)

Typedefs

typedef struct SDL_mutex SDL_mutex
typedef struct SDL_semaphore SDL_sem
typedef struct SDL_cond SDL_cond

Functions

SDL_mutex * SDL_CreateMutex (void)
int SDL_mutexP (SDL_mutex *mutex)
int SDL_mutexV (SDL_mutex *mutex)
void SDL_DestroyMutex (SDL_mutex *mutex)
SDL_sem * SDL_CreateSemaphore (Uint32 initial_value)
void SDL_DestroySemaphore (SDL_sem *sem)
int SDL_SemWait (SDL_sem *sem)
int SDL_SemTryWait (SDL_sem *sem)
int SDL_SemWaitTimeout (SDL_sem *sem, Uint32 ms)
int SDL_SemPost (SDL_sem *sem)
Uint32 SDL_SemValue (SDL_sem *sem)
SDL_cond * SDL_CreateCond (void)
void SDL_DestroyCond (SDL_cond *cond)
int SDL_CondSignal (SDL_cond *cond)
int SDL_CondBroadcast (SDL_cond *cond)
int SDL_CondWait (SDL_cond *cond, SDL_mutex *mut)
int SDL_CondWaitTimeout (SDL_cond *cond, SDL_mutex *mutex, Uint32 ms)


Detailed Description

Functions to provide thread synchronization primitives

Generated on Tue Feb 3 20:00:10 2009 for SDL by  doxygen 1.5.8