Go to the documentation of this file.
21 #include "../../SDL_internal.h"
54 if (!
cond->lock || !
cond->wait_sem || !
cond->wait_done) {
72 if (
cond->wait_done) {
111 return SDL_SetError(
"Passed a NULL condition variable");
118 if (
cond->waiting >
cond->signals) {
121 num_waiting = (
cond->waiting -
cond->signals);
123 for (
i = 0;
i < num_waiting; ++
i) {
130 for (
i = 0;
i < num_waiting; ++
i) {
167 return SDL_SetError(
"Passed a NULL condition variable");
195 if (
cond->signals > 0) {
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst cond
#define SDL_CreateSemaphore
int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms)
#define SDL_SemWaitTimeout
void SDL_DestroyCond(SDL_cond *cond)
int SDL_CondBroadcast(SDL_cond *cond)
int SDL_CondSignal(SDL_cond *cond)
#define SDL_MUTEX_MAXWAIT
#define SDL_OutOfMemory()
int SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex)
#define SDL_DestroySemaphore
SDL_cond * SDL_CreateCond(void)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)