Display.sleep

Causes the user-interface thread to <em>sleep</em> (that is, to be put in a state where it does not consume CPU cycles) until an event is received or it is otherwise awakened.

@return <code>true</code> if an event requiring dispatching was placed on the queue.

@exception SWTException <ul> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> </ul>

@see #wake

class Display
bool
sleep
(
)

Meta