Reference Manual - 1.0.0
IDirectFBDataBuffer   WaitForDataWithTimeout

Wait for data to be available within an amount of time. Thread is idle in the meantime.

WaitForDataWithTimeout (
  IDirectFBDataBuffer   * thiz,
  unsigned int   length,
  unsigned int   seconds,
  unsigned int   milli_seconds
);

This method blocks until at least the specified number of bytes is available or the timeout is reached.