Reference Manual - 1.4.13
IDirectFBEventBuffer   WakeUp

Wake up any thread waiting for events in this buffer.

DFBResult WakeUp (
  IDirectFBEventBuffer   * thiz
);

This method causes any IDirectFBEventBuffer::WaitForEvent() or IDirectFBEventBuffer::WaitForEventWithTimeout() call to return with DFB_INTERRUPTED.

It should be used rather than sending wake up messages which may pollute the queue and consume lots of CPU and memory compared to this 'single code line method'.

Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License