Home | History | Annotate | Download | only in pth

Lines Matching refs:cond

43 	SDL_cond *cond;
45 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond));
46 if ( cond ) {
47 if ( pth_cond_init(&(cond->condpth_p)) < 0 ) {
49 SDL_free(cond);
50 cond = NULL;
55 return(cond);
59 void SDL_DestroyCond(SDL_cond *cond)
61 if ( cond ) {
62 SDL_free(cond);
67 int SDL_CondSignal(SDL_cond *cond)
71 if ( ! cond ) {
77 if ( pth_cond_notify(&(cond->condpth_p), FALSE) != 0 ) {
85 int SDL_CondBroadcast(SDL_cond *cond)
89 if ( ! cond ) {
95 if ( pth_cond_notify(&(cond->condpth_p), TRUE) != 0 ) {
111 SDL_CondWait(cond);
122 int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms)
128 if ( ! cond ) {
138 if ( pth_cond_await(&(cond->condpth_p), &(mutex->mutexpth_p), ev) != 0 ) {
149 int SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex)
153 if ( ! cond ) {
159 if ( pth_cond_await(&(cond->condpth_p), &(mutex->mutexpth_p), NULL) != 0 ) {