Reference Manual - 1.0.0
IDirectFBEventBuffer   WakeUp

Wake up any thread waiting for events in this buffer.

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'.