cond.h File Reference

Thread subsystem V. More...

#include <gctypes.h>
#include <time.h>

Defines

#define LWP_COND_NULL   0xffffffff

Typedefs

typedef u32 cond_t
 typedef for the condition variable handle

Functions

s32 LWP_CondInit (cond_t *cond)
 Initialize condition variable.
s32 LWP_CondWait (cond_t cond, mutex_t mutex)
 Wait on condition variable.
s32 LWP_CondSignal (cond_t cond)
 Signal a specific thread waiting on this condition variable to wake up.
s32 LWP_CondBroadcast (cond_t cond)
 Broadcast all threads waiting on this condition variable to wake up.
s32 LWP_CondTimedWait (cond_t cond, mutex_t mutex, const struct timespec *abstime)
 Timed wait on a conditionvariable.
s32 LWP_CondDestroy (cond_t cond)
 Destroy condition variable, release all threads and handles blocked on that condition variable.


Detailed Description

Thread subsystem V.


Function Documentation

s32 LWP_CondBroadcast ( cond_t  cond  ) 

Broadcast all threads waiting on this condition variable to wake up.

Parameters:
[in] cond handle to the cond_t structure
Returns:
0 on success, <0 on error

s32 LWP_CondDestroy ( cond_t  cond  ) 

Destroy condition variable, release all threads and handles blocked on that condition variable.

Parameters:
[in] cond handle to the cond_t structure
Returns:
0 on success, <0 on error

s32 LWP_CondInit ( cond_t cond  ) 

Initialize condition variable.

Parameters:
[out] cond pointer to the cond_t handle
Returns:
0 on success, <0 on error

s32 LWP_CondSignal ( cond_t  cond  ) 

Signal a specific thread waiting on this condition variable to wake up.

Parameters:
[in] cond handle to the cond_t structure
Returns:
0 on success, <0 on error

s32 LWP_CondTimedWait ( cond_t  cond,
mutex_t  mutex,
const struct timespec *  abstime 
)

Timed wait on a conditionvariable.

Parameters:
[in] cond handle to the cond_t structure
[in] mutex handle to the mutex_t structure
[in] abstime pointer to a timespec structure holding the abs time for the timeout.
Returns:
0 on success, <0 on error

s32 LWP_CondWait ( cond_t  cond,
mutex_t  mutex 
)

Wait on condition variable.

Parameters:
[in] cond handle to the cond_t structure
[in] mutex handle to the mutex_t structure
Returns:
0 on success, <0 on error


Generated on Sun Feb 4 18:14:34 2007 for libOGC by  doxygen 1.4.7