LWDR

A static class by which to interface with core features of LWDR.

Members

Static functions

deregisterCurrentThread
void deregisterCurrentThread()

Deregister the current thread from LWDR. + If this thread was not registered, it will cause unknown behaviour. + This will deallocate TLS memory for this thread. +

free
void free(T obj)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void free(TArr arr)

Finalise (if possible) and deallocate dynamic array arr

free
void free(TPtr ptr)

Deallocate ptr

free
void free(TPtr ptr)

Finalise (if possible) and deallocate struct pointed to by ptr.

freeDelegateContext
void freeDelegateContext(void* contextPtr)

Deallocate the context for a delegate. If the pointer isn't valid, then no action is taken. Hence, it is safe to call this for all types of delegate context types.

registerCurrentThread
void registerCurrentThread()

Register the current thread with LWDR. + This will perform the necessary TLS allocations for this thread. +

startRuntime
void startRuntime()

Start the runtime. Must be called once per process and before any runtime functionality is used!

stopRuntime
void stopRuntime()

Stop the runtime. Must be called once per process after all D code has exited.

Meta