Package: gio

Function gio:task-priority

Lambda List

gio:task-priority (task)

Syntax

(g:task-priority task) => priority
(setf (g:task-priority task) priority)

Arguments

task -- a g:task instance
priority -- an integer with the priority of the request

Details

The g:task-priority function gets the priority of the task. The (setf g:task-priority function sets the priority. If you do not call this, it will default to G_PRIORITY_DEFAULT.

This will affect the priority of g:source instances created with the g:task-attach-source function and the scheduling of tasks run in threads, and can also be explicitly retrieved later via the g:task-priority function.
 

See also

#2023-7-13