TimeoutPool
Description:
Creates a new timeout pool source.
There is no direct replacement for this API
A timeout pool should be used when multiple timeout functions, running at the same priority, are needed and the g_timeout_add
API
might lead to starvation of the time slice of the main loop. A timeout pool allocates a single time slice of the main loop and runs every
timeout function inside it. The timeout pool is always sorted, so that the extraction of the next timeout function is a constant time operation.
Parameters:
priority |
the priority of the timeout pool. Typically this will be DEFAULT |
Returns:
the newly created TimeoutPool. The created pool is owned by the GLib default context and will be automatically destroyed when the context is destroyed. It is possible to force the destruction of the timeout pool using destroy |