LWDRThreadEntryMixin

Mixin for the entry point of a secondary thread. Calls registerCurrentThread and the respective stop function on scope(exit).

May be extended to contain more initialization in the future.

Don't combine this mixin with LWDREntryPointMixin as it already registers the thread.

enum LWDRThreadEntryMixin = q{ LWDR.registerCurrentThread; scope(exit) LWDR.deregisterCurrentThread; };

Examples

extern(C) void secondThreadEntryPoint()
{
    mixin(LWDRThreadEntryMixin);
}

Meta