Returns an enumeration, defined in this class, that indicates whether the lock lasts for the length of the current unit-of-work ('UOW') or until the task terminates('task').
Attempts to get a lock. This method blocks if another task already owns the lock.
ENQBUSY, LENGERR, INVREQ
Attempts to get a lock. This method does not block if another task already owns the lock. It returns a boolean that indicates whether it succeeded.
ENQBUSY, LENGERR, INVREQ
Returns an enumeration, defined in this class, that indicates what type of semaphore this is.
Release a lock.
LENGERR, INVREQ