Bypassing std.concurrency.exec()
Johannes Blume via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 7 01:33:49 PDT 2014
Another thing you should keep in mind is that thread_attachThis()
does not invoke any module TLS constructors, so you should also
call rt_moduleTlsCtor() unless you are absolutely sure none of
the modules you use have one. Call rt_moduleTlsCtor() before you
detach the thread. Those functions are not part of the official
API, so you might have to declare them with
extern(C)
{
void rt_moduleTlsCtor();
void rt_moduleTlsDtor();
}
More information about the Digitalmars-d
mailing list