CallbackContext.pin

void pin() nothrow @trusted

Pins this context to prevent GC collection.

Call this before passing the context to C code.