[libc-commits] [libc] [libc] rework mutex (PR #92168)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue May 28 11:11:18 PDT 2024


================
@@ -37,7 +44,8 @@ class RawMutex {
   LIBC_INLINE_VAR static constexpr FutexWordType LOCKED = 0b01;
   LIBC_INLINE_VAR static constexpr FutexWordType IN_CONTENTION = 0b10;
 
-  LIBC_INLINE FutexWordType spin(uint_fast32_t spin_count) {
+private:
+  LIBC_INLINE FutexWordType spin(int spin_count) {
----------------
nickdesaulniers wrote:

This changes the signedness of `spin_count`. Do we want to use `unsigned` instead?

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


More information about the libc-commits mailing list