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


cma_cond_signal_int

Wakes one thread that is waiting on a condition variable. This routine can only be called from interrupt level.

Syntax

cma_cond_signal(
                 condition);
 


Argument Data Type Access

condition opaque cma_t_cond read


C Binding

#include 

void cma_cond_signal_int ( cma_t_cond *condition);

Arguments

condition
Handle of the condition variable signaled.

Description

This routine wakes one thread waiting on a condition variable. It can only be called from a software interrupt handler routine. Calling this routine implies 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.

This routine does not cause a thread blocked on a condition variable to resume execution immediately. A thread resumes execution after the interrupt handler returns.

You can call this routine when the associated mutex is either locked or unlocked. (Note that you should never try to lock a mutex from an interrupt handler.)


Note
This routine allows you to signal a thread from a software interrupt handler. Do not call this routine from noninterrupt code. If you want to signal a thread from the normal noninterrupt level, use cma_cond_signal.

Exceptions

cma_e_existence
cma_e_use_error



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