Harness.waitForClockIdWaits

Waits for timeout seconds until waits number of #GstClockID waits is registered with the #GstTestClock. Useful for writing deterministic tests, where you want to make sure that an expected number of waits have been reached.

MT safe.

class Harness
bool
waitForClockIdWaits
(
uint waits
,
uint timeout
)

Parameters

waits uint

a #guint describing the numbers of #GstClockID registered with the #GstTestClock

timeout uint

a #guint describing how many seconds to wait for waits to be true

Return Value

Type: bool

a gboolean true if the waits have been registered, false if not. (Could be that it timed out waiting or that more waits than waits was found)