DataQueue


Description:

[ CCode ( has_construct_function = false ) ]
protected DataQueue ()

Creates a new DataQueue.

If fullcallback or emptycallback are supplied, then the DataQueue will call the respective callback to signal full or empty condition. If the callbacks are NULL the DataQueue will instead emit 'full' and 'empty' signals.

Parameters:

checkdata

a pointer that will be passed to the checkfull, fullcallback , and emptycallback callbacks.

checkfull

the callback used to tell if the element considers the queue full or not.

emptycallback

the callback which will be called when the queue is considered empty.

fullcallback

the callback which will be called when the queue is considered full.

Returns:

a new DataQueue.