gdkThreadsAddTimeoutFull

Sets a function to be called at regular intervals holding the GDK lock, with the given priority. The function is called repeatedly until it returns FALSE, at which point the timeout is automatically destroyed and the function will not be called again. The notify function is called when the timeout is destroyed. The first call to the function will be at the end of the first interval. Note that timeout functions may be delayed, due to the processing of other event sources. Thus they should not be relied on for precise timing. After each call to the timeout function, the time of the next timeout is recalculated based on the current time and the given interval (it does not try to 'catch up' time lost in delays). This variant of g_timeout_add_full() can be thought of a MT-safe version Since 2.12

static
uint
gdkThreadsAddTimeoutFull

Parameters

priority int

the priority of the timeout source. Typically this will be in the range between G_PRIORITY_DEFAULT_IDLE and G_PRIORITY_HIGH_IDLE.

interval uint

the time between calls to the function, in milliseconds (1/1000ths of a second)

data void*

data to pass to function

notify GDestroyNotify

function to call when the timeout is removed, or NULL. [allow-none]

Return Value

Type: uint

the ID (greater than 0) of the event source.

Meta