mcfgthread
mcfgthread copied to clipboard
Cornerstone of the MOST efficient std::thread on Windows for mingw-w64
thin lto不知道为何不能用。换posix的就行。你去修一下吧。
Someone has to test this. I don't maintain clang builds myself.
Should we add support for clang++ and libcxx on Windows? If somebody wants to contribute, [here](http://llvm.org/svn/llvm-project/libcxx/trunk/include/__threading_support) is some pseudo documentation.
We need to find a better one as the ARM64 Wine image by Linaro fails quite often due to spurious deadlocks and even segmentation faults.
TL;DR: Do not build with LTO (`meson setup -Db_lto=true`); it's not supported yet. --- LTO does not work on this code: https://github.com/lhmouse/mcfgthread/blob/a13914daf8aae092eccc0b2e66a6ed517c4b7ea6/mcfgthread/gthr_aux.c#L14-L28 - [ ] `do_call_once_seh_take_over()` is defined in assembly...