Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-09-08 20:47:43
Size: 1820
Editor: SheenaSmith
Comment: update content (old wiki)
Revision 4 as of 2010-10-12 05:56:58
Size: 1773
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
||'''cond'''||^a pointer to the condition variable that is being applied^ ???||
||'''mutex'''||^a pointer to the mutex that is to be unlocked^||
||'''cond'''||^the applicable SDL_cond^ ???||
||'''mutex'''||^the mutex that is to be unlocked^||

DRAFT

SDL_CondWait

Use this function to wait on the condition variable, unlocking the provided mutex. green

green

Syntax

int SDL_CondWait(SDL_cond*  cond,
                 SDL_mutex* mutex)

Function Parameters

cond

the applicable SDL_cond ???

mutex

the mutex that is to be unlocked

Return Value

Returns 0 when it is signaled or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

The mutex must be locked before entering this function! The mutex is re-locked once the condition variable is signaled *by another thread calling SDL_CondSignal() or SDL_CondBroadcast() on the condition variable cond.*

green

The mutex must be locked before entering this function! green

This function unlocks the specified mutex and waits on another thread to call SDL_CondSignal() or SDL_CondBroadcast() on the condition variable cond. The mutex is re-locked once the condition variable is signaled.


CategoryAPI, CategoryMutex

None: SDL_CondWait (last edited 2015-04-26 19:04:51 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit