Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run thread-local static ctors and dtors on macOS
From the documentation on thread_attachThis (https://dlang.org/phobos/core_thread.html#.thread_attachThis): > 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(); thread_detachThis (https://dlang.org/phobos/core_thread.html#.thread_detachThis) has a similar note about calling rt_moduleTlsDtor after thread_detachThis. This prevents bugs like the following: SimonN/LixD#121
- Loading branch information