libmetal
|
Functions | |
static void | metal_condition_init (struct metal_condition *cv) |
Initialize a libmetal condition variable. | |
static int | metal_condition_signal (struct metal_condition *cv) |
Notify one waiter. Before calling this function, the caller should have acquired the mutex. | |
static int | metal_condition_broadcast (struct metal_condition *cv) |
Notify all waiters. Before calling this function, the caller should have acquired the mutex. | |
int | metal_condition_wait (struct metal_condition *cv, metal_mutex_t *m) |
Block until the condition variable is notified. Before calling this function, the caller should have acquired the mutex. | |
|
inlinestatic |
Notify all waiters. Before calling this function, the caller should have acquired the mutex.
[in] | cv | condition variable |
|
inlinestatic |
Initialize a libmetal condition variable.
[in] | cv | condition variable to initialize. |
|
inlinestatic |
Notify one waiter. Before calling this function, the caller should have acquired the mutex.
[in] | cv | condition variable |
int metal_condition_wait | ( | struct metal_condition * | cv, |
metal_mutex_t * | m ) |
Block until the condition variable is notified. Before calling this function, the caller should have acquired the mutex.
[in] | cv | condition variable |
[in] | m | mutex |