NXSemaPost

Releases the resource protected by the specified semaphore.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  void NXSemaPost (
     NXSema_t  *sema);
  

Parameters

sema

(IN) Points to the semaphore to signal.

Remarks

NXSemaPost increments the semaphore count. If a thread is waiting for the semaphore, it makes the blocked thread runnable. If multiple threads are blocked on the semaphore, no assumptions can be made about which of those threads might be unblocked.

For sample code, see Library.c.

See Also