NXCondSignal

Signals on the condition variable.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  void NXCondSignal (
     NXCond_t  *cond);
  

Parameters

cond

(IN) Points to the condition variable to signal.

Remarks

NXCondSignal wakes up one of the threads blocked on the condition variable. If more than one thread is blocked on the condition variable, no assumptions can be made on which of those threads might be awakened. NXCondSignal has no effect on threads that are not awakened.

NOTE:Condition variables are stateless. If no threads are blocked on the condition variable, the call to NXCondSignal has no effect and is not remembered. A subsequent call to NXCondWait or NXCondTimedWait blocks the calling thread.

For sample code, see CondVar.c.

See Also