Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kAssembly_AddLoadHandler | ( | kCallbackFx | function,
|  | kPointer | receiver
| ) |  |

Adds a callback to be notified when a new assembly is loaded.

The callback will be notified immediately after the assembly is loaded. The callback 'sender' argument will be the handle of the loaded assembly.

The static assembly lock (an internal, recursive, mutual exclusion structure) is held for the duration of callback invocation. Callback functions should be structured accordingly to avoid the potential for deadlock.

Parameters

  function | Callback function.
  receiver | Context pointer for callback function.

Returns
  Operation status.