AsyncQueue.pushSorted
void pushSorted(void * data, glib.types.CompareDataFunc func)Inserts data into queue using func to determine the new position.
This function requires that the queue is sorted before pushing on new elements, see glib.async_queue.AsyncQueue.sort.
This function will lock queue before it sorts the queue and unlock it when it is finished.
For an example of func see glib.async_queue.AsyncQueue.sort.
Parameters
data | the data to push into the queue |
func | the #GCompareDataFunc is used to sort queue |