Important Note
Typical application code never needs to deal with this class. It is provided only to allow applications which require non-standard synchronization behavior to plug in the support they require. Subclasses which override the methods in this class must ensure that the superclass methods are invoked in their implementations
Display#setSynchronizer, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Display | |
| pack-priv static final int | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final int | |
| pack-priv final ConcurrentLinkedQueue | |
| pack-priv Thread |
| Access | Constructor and Description |
|---|---|
| public | Synchronizer(Display
the display to create the synchronizer on display)Constructs a new instance of this class. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| protected void | |
| pack-priv boolean | |
| pack-priv void | moveAllEventsTo(Synchronizer
the synchronizer that will receive the events toReceiveTheEvents)Removes all pending events from the receiver and inserts them into the beginning of the given synchronizer's queue |
| pack-priv void | |
| pack-priv RunnableLock | |
| pack-priv boolean | |
| pack-priv boolean | |
| protected void |
| display | back to summary |
|---|---|
| pack-priv Display display | |
| GROW_SIZE | back to summary |
|---|---|
| pack-priv static final int GROW_SIZE | |
| IS_COCOA | back to summary |
|---|---|
| pack-priv static final boolean IS_COCOA | |
| IS_GTK | back to summary |
|---|---|
| pack-priv static final boolean IS_GTK | |
| MESSAGE_LIMIT | back to summary |
|---|---|
| pack-priv static final int MESSAGE_LIMIT | |
| messages | back to summary |
|---|---|
| pack-priv final ConcurrentLinkedQueue<RunnableLock> messages | |
| syncThread | back to summary |
|---|---|
| pack-priv Thread syncThread | |
| Synchronizer | back to summary |
|---|---|
| public Synchronizer(Display display) Constructs a new instance of this class.
| |
| addLast | back to summary |
|---|---|
| pack-priv void addLast(RunnableLock lock) | |
| asyncExec | back to summary |
|---|---|
| protected void asyncExec(Runnable runnable) Causes the | |
| isMessagesEmpty | back to summary |
|---|---|
| pack-priv boolean isMessagesEmpty() | |
| moveAllEventsTo | back to summary |
|---|---|
| pack-priv void moveAllEventsTo(Synchronizer toReceiveTheEvents) Removes all pending events from the receiver and inserts them into the beginning of the given synchronizer's queue
| |
| releaseSynchronizer | back to summary |
|---|---|
| pack-priv void releaseSynchronizer() | |
| removeFirst | back to summary |
|---|---|
| pack-priv RunnableLock removeFirst() | |
| runAsyncMessages | back to summary |
|---|---|
| pack-priv boolean runAsyncMessages() | |
| runAsyncMessages | back to summary |
|---|---|
| pack-priv boolean runAsyncMessages(boolean all) | |
| syncExec | back to summary |
|---|---|
| protected void syncExec(Runnable runnable) Causes the
| |