LockableT

Members

Functions

lock
void lock()

Locks lockable. If it is already locked by another thread, the current thread will block until it is unlocked by the other thread.

trylock
bool trylock()

Tries to lock lockable. If it is already locked by another thread, then it immediately returns FALSE, otherwise it locks lockable.

unlock
void unlock()

Unlocks lockable. This method should not be called if the current does not already holds a lock on lockable (having used gda.lockable.Lockable.lock or gda.lockable.Lockable.trylock).