Reads an event from the operating system's event queue, dispatches it appropriately, and returns
true
if there is potentially more work to do, or
false
if the caller can sleep until another event is placed on the event queue.
In addition to checking the system event queue, this method also checks if any inter-thread messages (created by syncExec()
or asyncExec()
) are waiting to be processed, and if so handles them before returning.
@return
false
if the caller can sleep upon return from this method
@exception SWTException
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
- ERROR_DEVICE_DISPOSED - if the receiver has been disposed
- ERROR_FAILED_EXEC - if an exception occurred while running an inter-thread message
@see #sleep
@see #wake