Function
Mtktimeout_add_full
Declaration [src]
guint
mtk_timeout_add_full (
int priority,
unsigned int interval,
GSourceFunc function,
gpointer data,
GDestroyNotify notify
)
Description [src]
Sets a function to be called at regular intervals, with the given priority.
This method is similar to g_timeout_add_full() except it will
attach the source to the thread-default main context.
This function is renamed to mtk_timeout_add() in language bindings.
Parameters
priority-
Type:
intThe priority of the timeout source; typically this will be in the range between
G_PRIORITY_DEFAULTandG_PRIORITY_HIGH. interval-
Type:
unsigned intThe time between calls to the function, in milliseconds.
function-
Type:
GSourceFuncFunction to call.
data-
Type:
gpointerData to pass to
function.The argument can be NULL.The data is owned by the caller of the function. notify-
Type:
GDestroyNotifyFunction to call when the timeout is removed.
The argument can be NULL.