Reference Manual - 0.9.25
IDirectFBDataBuffer   WaitForData

Wait for data to be available. Thread is idle in the meantime.

WaitForData (
  IDirectFBDataBuffer   * thiz,
  unsigned int   length
);

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