Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kMsgQueue_SetDropHandler ( kMsgQueue  queue,
kMsgQueueDropFx  onDrop,
kPointer  receiver 
)

Sets the callback used when dropping an item.

If a handler is not set and the queue contains objects, dropped objects will be processed with kObject_Dispose.

This method is not thread-safe.

Parameters
queueQueue object.
onDropCallback function.
receiverCallback context.
Returns
Operation status.