Zen API
|
kStatus kAssembly_AddUnloadedHandler | ( | kCallbackFx | function, |
kPointer | receiver | ||
) |
Adds a callback to be notified after unloading an assembly.
The callback will be notified just after the release of the assembly's static types, and just prior to destroying the assembly handle. The callback 'sender' argument will be the handle of the assembly that is being unloaded.
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.
function | Callback function. |
receiver | Context pointer for callback function. |