include/SDL_mutex.h
changeset 7678 286c42d7c5ed
parent 7677 871d43c6968a
child 8149 681eb46b8ac4
equal deleted inserted replaced
7677:871d43c6968a 7678:286c42d7c5ed
    50 
    50 
    51 
    51 
    52 /**
    52 /**
    53  *  \name Mutex functions
    53  *  \name Mutex functions
    54  */
    54  */
    55 /*@{ */
    55 /* @{ */
    56 
    56 
    57 /* The SDL mutex structure, defined in SDL_sysmutex.c */
    57 /* The SDL mutex structure, defined in SDL_sysmutex.c */
    58 struct SDL_mutex;
    58 struct SDL_mutex;
    59 typedef struct SDL_mutex SDL_mutex;
    59 typedef struct SDL_mutex SDL_mutex;
    60 
    60 
    92 /**
    92 /**
    93  *  Destroy a mutex.
    93  *  Destroy a mutex.
    94  */
    94  */
    95 extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex * mutex);
    95 extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex * mutex);
    96 
    96 
    97 /*@} *//*Mutex functions */
    97 /* @} *//* Mutex functions */
    98 
    98 
    99 
    99 
   100 /**
   100 /**
   101  *  \name Semaphore functions
   101  *  \name Semaphore functions
   102  */
   102  */
   103 /*@{ */
   103 /* @{ */
   104 
   104 
   105 /* The SDL semaphore structure, defined in SDL_syssem.c */
   105 /* The SDL semaphore structure, defined in SDL_syssem.c */
   106 struct SDL_semaphore;
   106 struct SDL_semaphore;
   107 typedef struct SDL_semaphore SDL_sem;
   107 typedef struct SDL_semaphore SDL_sem;
   108 
   108 
   152 /**
   152 /**
   153  *  Returns the current count of the semaphore.
   153  *  Returns the current count of the semaphore.
   154  */
   154  */
   155 extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem * sem);
   155 extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem * sem);
   156 
   156 
   157 /*@} *//*Semaphore functions */
   157 /* @} *//* Semaphore functions */
   158 
   158 
   159 
   159 
   160 /**
   160 /**
   161  *  \name Condition variable functions
   161  *  \name Condition variable functions
   162  */
   162  */
   163 /*@{ */
   163 /* @{ */
   164 
   164 
   165 /* The SDL condition variable structure, defined in SDL_syscond.c */
   165 /* The SDL condition variable structure, defined in SDL_syscond.c */
   166 struct SDL_cond;
   166 struct SDL_cond;
   167 typedef struct SDL_cond SDL_cond;
   167 typedef struct SDL_cond SDL_cond;
   168 
   168 
   235  *           delay of 1 ms, and so should be avoided if possible.
   235  *           delay of 1 ms, and so should be avoided if possible.
   236  */
   236  */
   237 extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond * cond,
   237 extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond * cond,
   238                                                 SDL_mutex * mutex, Uint32 ms);
   238                                                 SDL_mutex * mutex, Uint32 ms);
   239 
   239 
   240 /*@} *//*Condition variable functions */
   240 /* @} *//* Condition variable functions */
   241 
   241 
   242 
   242 
   243 /* Ends C function definitions when using C++ */
   243 /* Ends C function definitions when using C++ */
   244 #ifdef __cplusplus
   244 #ifdef __cplusplus
   245 }
   245 }