Go to the documentation of this file.
21 #include "../../SDL_internal.h"
52 if (!
cond->lock || !
cond->wait_sem || !
cond->wait_done) {
70 if (
cond->wait_done) {
109 return SDL_SetError(
"Passed a NULL condition variable");
116 if (
cond->waiting >
cond->signals) {
119 num_waiting = (
cond->waiting -
cond->signals);
121 for (
i = 0;
i < num_waiting; ++
i) {
128 for (
i = 0;
i < num_waiting; ++
i) {
165 return SDL_SetError(
"Passed a NULL condition variable");
193 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)