Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSemaphore_Construct | ( | kSemaphore * | semaphore,
|  | kSize | initialCount,
|  | kAlloc | allocator
| ) |  |

Constructs a semaphore object.

Parameters

  semaphore | Destination for the constructed object handle.
  initialCount | Initial value of the semaphore.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.