zStatus zSyncQueue_SetDropHandler(zSyncQueue queue, zSyncQueueDropCallback onDrop, zHandle context);
|
Parameters |
Description |
|
zSyncQueueDropCallback onDrop |
Callback function, or zNULL to de-register for callback notification. |
|
zHandle context |
User context handle supplied to the callback function. |
|
receiver |
zSyncQueue object. |
Registers or unregisters a callback function that is notified when queue items are dropped.
The drop handler will be called when a queue item is added and capacity is exhausted. The drop handler can take any necessary actions, such as freeing the item.
zSyncQueue.h