[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


cma_cond_signal

Wakes one thread that is waiting on a condition variable.

Syntax

cma_cond_signal(
                 condition);
 


Argument Data Type Access

condition opaque cma_t_cond read


C Binding

#include 

void cma_cond_signal ( cma_t_cond *condition);

Arguments

condition
Handle of the condition variable signaled.

Description

This routine wakes one thread waiting on a condition variable. Calling this routine implies that data guarded by the associated mutex has changed so that it might be possible for a single waiting thread to proceed. Call this routine when any thread waiting on the specified condition variable might find its predicate true, but only one thread should proceed.

You can call this routine when the associated mutex is either locked or unlocked.

If you want to signal a thread from interrupt level, use cma_cond_ signal_int.

Do not call this routine from any software interrupt handler.

Exceptions

cma_e_existence
cma_e_use_error



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]