AsyncQueue.pushSortedUnlocked

Inserts data into queue using func to determine the new position. This function requires that the queue is sorted before pushing on new elements. This function is called while holding the queue's lock. For an example of func see g_async_queue_sort(). Since 2.10

class AsyncQueue
void
pushSortedUnlocked

Parameters

data void*

the data to push into the queue

func GCompareDataFunc

the GCompareDataFunc is used to sort queue. This function is passed two elements of the queue. The function should return 0 if they are equal, a negative value if the first element should be higher in the queue or a positive value if the first element should be lower in the queue than the second element.

userData void*

user data passed to func.

Meta