Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSemaphore_Wait ( kSemaphore  semaphore,
k64u  timeout 
)

Waits until the semaphore can be decremented or the timeout interval has elapsed.

kERROR_TIMEOUT is returned if the timeout elapses before the semaphore can be decremented.

Parameters
semaphoreSemaphore object.
timeoutTimeout in microseconds, or kINFINITE to wait indefinitely.
Returns
Operation status.