Add a function comparing tasks (bug 14403)
This commit is contained in:
@@ -693,3 +693,8 @@ set_priority_to_pid (guint pid, gint priority)
|
||||
return (res == 0) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
gint
|
||||
task_pid_compare_fn(gconstpointer a, gconstpointer b)
|
||||
{
|
||||
return (((Task*)a)->pid - ((Task*)b)->pid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user