Function
GLibtimeout_add_once
since: 2.74
Declaration [src]
guint
g_timeout_add_once(
guintinterval,
GSourceOnceFuncfunction,
gpointerdata
)
Description [src]
Sets a function to be called after interval milliseconds have elapsed,
with the default priority, G_PRIORITY_DEFAULT.
The given function is called once and then the source will be automatically
removed from the main context.
This function otherwise behaves like g_timeout_add().
Available since: 2.74
This function is not directly available to language bindings.
Parameters
interval-
Type:
guintThe time after which the function will be called, in milliseconds.
function-
Type:
GSourceOnceFuncFunction to call.
data-
Type:
gpointerData to pass to
function.The argument can beNULL.The data is owned by the caller of the function.
Return value
Type: guint
The ID (greater than 0) of the event source.