Skip to content

Commit 00f83f1

Browse files
[libc] more cleanups
1 parent 46c938c commit 00f83f1

File tree

1 file changed

+1
-8
lines changed
  • libc/src/__support/threads/linux

1 file changed

+1
-8
lines changed

libc/src/__support/threads/linux/mutex.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace LIBC_NAMESPACE {
2020
// TODO: support shared/recursive/robust mutexes.
2121
class Mutex final : private internal::RawMutex {
2222
// reserved timed, may be useful when combined with other flags.
23-
[[maybe_unused]] unsigned char timed;
23+
unsigned char timed;
2424
unsigned char recursive;
2525
unsigned char robust;
2626
unsigned char pshared;
@@ -29,12 +29,6 @@ class Mutex final : private internal::RawMutex {
2929
pid_t owner;
3030
unsigned long long lock_count;
3131

32-
enum class LockState : FutexWordType {
33-
Free = UNLOCKED,
34-
Locked = LOCKED,
35-
Waiting = CONTENTED,
36-
};
37-
3832
public:
3933
LIBC_INLINE constexpr Mutex(bool is_timed, bool is_recursive, bool is_robust,
4034
bool is_pshared)
@@ -83,7 +77,6 @@ class Mutex final : private internal::RawMutex {
8377
return MutexError::NONE;
8478
return MutexError::BUSY;
8579
}
86-
friend struct CndVar;
8780
};
8881

8982
} // namespace LIBC_NAMESPACE

0 commit comments

Comments
 (0)