Zen API

- Home
- Topics
- Types
- Files

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

  semaphore | Semaphore object.
  timeout | Timeout in microseconds, or kINFINITE to wait indefinitely.

Returns
  Operation status.