Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSemaphore_Construct ( kSemaphore semaphore,
kSize  initialCount,
kAlloc  allocator 
)

Constructs a semaphore object.

Parameters
semaphoreDestination for the constructed object handle.
initialCountInitial value of the semaphore.
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.