Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kLock_ConstructEx ( kLock lock,
kBool  isWaitable,
kAlloc  allocator 
)

Constructs a lock object with optional support for waiting.

If the lock is waitable, a finite timeout value can be specified when using the kLock_EnterEx method.

Parameters
lockDestination for the constructed object handle.
isWaitableShould lock support waiting?
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.