Public methods

lifeTime

LifeTime lifeTime() const

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').

lock

void lock()

Attempts to get a lock. This method blocks if another task already owns the lock.

Conditions

ENQBUSY, LENGERR, INVREQ

tryLock

Icc::Bool tryLock()

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.

Conditions

ENQBUSY, LENGERR, INVREQ

type

LockType type() const

Returns an enumeration, defined in this class, that indicates what type of semaphore this is.

unlock

void unlock()

Release a lock.

Conditions

LENGERR, INVREQ

[[ Contents Previous Page | Next Page Index ]]