wait_for_clock_id_waits


Description:

[ CCode ( cname = "gst_harness_wait_for_clock_id_waits" ) ]
public bool wait_for_clock_id_waits (uint waits, uint timeout)

Waits for timeout seconds until waits number of ClockID waits is registered with the TestClock.

Useful for writing deterministic tests, where you want to make sure that an expected number of waits have been reached.

MT safe.

Parameters:

this

a Harness

waits

a Signal describing the numbers of ClockID registered with the TestClock

timeout

a Signal describing how many seconds to wait for waits to be true

Returns:

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)