doctest
doctest copied to clipboard
Workaround access violation
Description
Due to race between exiting the process and starting of a new detached thread in Windows, thread local variables, which constructors or destructors have calls to runtime functions (e.g. free() function) can cause access violation since TBB along with runtime library may have been unloaded by the time these variables are constructed or destroyed. The workaround is do not call constructors and/or destructors for such variables if they are not used.
Heya!
Any way this could get integrated? This patch is the only way I found to get version 2.4.9 to work without issue on windows...
Thanks!