[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:10 PDT 2024
================
@@ -116,7 +116,26 @@ struct Mutex {
}
}
- MutexError trylock();
+ MutexError trylock() {
+ FutexWordType mutex_status = FutexWordType(LockState::Free);
+ FutexWordType locked_status = FutexWordType(LockState::Locked);
----------------
nickdesaulniers wrote:
This variable appears unused?
https://github.com/llvm/llvm-project/pull/93359
More information about the libc-commits
mailing list