Method
GLibSourceset_ready_time_ns
unstable since: 2.90
Declaration [src]
void
g_source_set_ready_time_ns (
GSource* source,
uint64_t ready_time
)
Description [src]
Sets a source to be dispatched when the given monotonic time is reached (or passed).
If the monotonic time is in the past (as it
always will be if ready_time is 0) then the source will be
dispatched immediately.
Dispatching the source does not reset the ready time. You should do so yourself, from the source dispatch function.
To reset the ready time, use g_source_clear_ready_time().
Note that if you have a pair of sources where the ready time of one suggests that it will be delivered first but the priority for the other suggests that it would be delivered first, and the ready time for both sources is reached during the same main context iteration, then the order of dispatch is undefined.
It is a no-op to call this function on a GSource which has
already been destroyed with g_source_destroy().
This API is only intended to be used by implementations of GSource.
Do not call this API on a GSource that you did not create.
Available since: 2.90