ScopedForeignCallback

RAII struct to cover callbacks that need attachment and runtime initialized. This deals with runtime inialization and thread attachment in a very explicit way.

struct ScopedForeignCallback (
bool assumeRuntimeIsAlreadyInitialized
bool saveRestoreFPU
) {
version(Windows)
enum bool doInitializeRuntime;
version(!Windows)
enum bool doInitializeRuntime;
enum bool detachThreadsAfterCallback;
}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

enter
void enter()

Thread that shouldn't be attached are eg. the audio threads.

Meta