Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-10-12 05:57:16
Size: 1777
Editor: SheenaSmith
Comment: minor change
Revision 6 as of 2010-10-18 01:17:26
Size: 1770
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
||'''cond'''||^the applicable SDL_cond^ ???||
||'''mutex'''||^the SDL_mutex that is to be unlocked^||
||'''cond'''||^the applicable condition variable^ ???||
||'''mutex'''||^the mutex to unlock^||

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 condition variable ???

mutex

the mutex to unlock

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