thread_attachByAddr

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.

NOTE: 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();

  1. Thread attachThread(Thread thisThread)
  2. Thread thread_attachByAddr(ThreadID addr)
    version(Windows) extern (C)
    thread_attachByAddr
  3. Thread thread_attachByAddrB(ThreadID addr, void* bstack)
Suggestion Box / Bug Report