Toolkit locks are created solely via NativeWindowFactory.
One use case is the AWT locking on X11, see NativeWindowFactory#getDefaultToolkitLock(String, long).
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | |
| public static final boolean |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| TRACE_LOCK | back to summary |
|---|---|
| public static final boolean TRACE_LOCK | |
| dispose | back to summary |
|---|---|
| public void dispose() Dispose this instance. Shall be called when instance is no more required. This allows implementations sharing a lock via resources to decrease the reference counter. | |
| lock | back to summary |
|---|---|
| public void lock() Blocking until the lock is acquired by this Thread or a timeout is reached. Timeout is implementation specific, if used at all.
| |
| unlock | back to summary |
|---|---|
| public void unlock() Release the lock.
| |
| validateLocked | back to summary |
|---|---|
public void validateLocked() throws RuntimeException
| |