/Users/hercules/trunk/SDL/include/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

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


Detailed Description

Functions to provide thread synchronization primitives

Generated on Mon Sep 21 21:32:25 2009 for Simple DirectMedia Layer by  doxygen 1.5.8