Registers the calling thread for use with the D Runtime. If this routine is called for a thread which is already registered, no action is performed.
This routine does not run thread-local static constructors when called. If full functionality as a D thread is desired, the following function must be called after thread_attachThis:
extern (C) void rt_moduleTlsCtor();
Sean Kelly, Walter Bright, Alex Rønne Petersen, Martin Nowak
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)