thread_local 不要用,有bug,会照成内存泄漏。
请使用其他方式代替
bug 是出现在 std::async 中,std::async 实现方式并不标准。
可以使用下方的 async++ 库代替 std::async
https://github.com/Amanieu/asyncplusplus
thread_local 不要用,有bug,会照成内存泄漏。
请使用其他方式代替
bug 是出现在 std::async 中,std::async 实现方式并不标准。
可以使用下方的 async++ 库代替 std::async
https://github.com/Amanieu/asyncplusplus