Function
GtkSourcescheduler_add_full
Declaration [src]
gsize
gtk_source_scheduler_add_full (
GtkSourceSchedulerCallback callback,
gpointer user_data,
GDestroyNotify notify
)
Description [src]
Adds a new callback that will be executed as time permits on the main thread.
This is useful when you need to do a lot of background work but want to do it incrementally.
callback
will be provided a deadline that it should complete it’s work by
(or near) and can be checked using g_get_monotonic_time()
for comparison.
Use gtk_source_scheduler_remove()
to remove the handler.
Available since: | 5.2 |
Parameters
callback |
GtkSourceSchedulerCallback |
The callback to execute. |
|
user_data |
gpointer |
User data for |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
notify |
GDestroyNotify |
Closure notify for |