lhmouse / mcfgthread

Cornerstone of the MOST efficient std::thread on Windows for mingw-w64
https://gcc-mcf.lhmouse.com/
Other
277 stars 28 forks source link

Move mutex, cond var and once flag to a separate static library #41

Closed lhmouse closed 2 years ago

lhmouse commented 5 years ago

Rationale: These three components do not depend on TLS cleanup callbacks. Programs that do not depend on TLS (especially legacy C programs that make use of CreateThread() or _beginthreadex() directly) might benefit from the possibility of static linking. The shared library is still provided for no additional cost.

lhmouse commented 2 years ago

Static linking should work now.