Package org.eclipse.swt.internal
Class Lock
java.lang.Object
org.eclipse.swt.internal.Lock
Instances of this represent a recursive monitor. Note that this
is an empty implementation which does not actually perform locking.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Lock
public Lock()
-
-
Method Details
-
lock
public int lock()Locks the monitor and returns the lock count. If the lock is owned by another thread, wait until the lock is released.- Returns:
- the lock count
-
unlock
public void unlock()Unlocks the monitor. If the current thread is not the monitor owner, do nothing.
-