Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kLock_ConstructEx | ( | kLock * | lock,
|  | kLockOption | options,
|  | kAlloc | allocator
| ) |  |

Constructs a lock object with support for behavioral options.

If kLOCK_OPTION_TIMEOUT is specified, a finite timeout value can be used with kLock_EnterEx.

Parameters

  lock | Destination for the constructed object handle.
  options | Bitset of lock options.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.