Zen API

- Home
- Topics
- Types
- Files

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

  lock | Destination for the constructed object handle.
  isWaitable | Should lock support waiting?
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.