[libc-commits] [libc] [libc] implement pthread_mutex_trylock (PR #93359)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue May 28 10:24:09 PDT 2024
https://github.com/nickdesaulniers commented:
Needs unit tests. If you implement
C11 https://en.cppreference.com/w/c/thread/mtx_trylock in terms of this, then you can test it in test/integration/src/threads/mtx_test.cpp. I'd test an uncontended and a contended vanilla Mutex to start with.
https://github.com/llvm/llvm-project/pull/93359
More information about the libc-commits
mailing list