Zen API

- Home
- Topics
- Types
- Files

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

  queue | Queue object.
  onDrop | Callback function.
  receiver | Callback context.

Returns
  Operation status.