AsyncQueue.pushSorted

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 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 AsyncQueue.sort.

class AsyncQueue
void
pushSorted

Parameters

data void*

the data to push into the queue

func GCompareDataFunc

the GCompareDataFunc is used to sort queue

userData void*

user data passed to func.

Meta

Since

2.10