[libc-commits] [libc] [libc] Make 'rand()' thread-safe using atomics instead of TLS (PR #96692)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Wed Jun 26 08:21:45 PDT 2024


nickdesaulniers wrote:

https://en.cppreference.com/w/cpp/atomic/atomic/is_lock_free I think can be used to detect if usage of an atomic type would result in a libcall.

https://github.com/llvm/llvm-project/pull/96692


More information about the libc-commits mailing list