File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
libc/src/__support/threads/linux Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace LIBC_NAMESPACE {
20
20
// TODO: support shared/recursive/robust mutexes.
21
21
class Mutex final : private internal::RawMutex {
22
22
// reserved timed, may be useful when combined with other flags.
23
- [[maybe_unused]] unsigned char timed;
23
+ unsigned char timed;
24
24
unsigned char recursive;
25
25
unsigned char robust;
26
26
unsigned char pshared;
@@ -29,12 +29,6 @@ class Mutex final : private internal::RawMutex {
29
29
pid_t owner;
30
30
unsigned long long lock_count;
31
31
32
- enum class LockState : FutexWordType {
33
- Free = UNLOCKED,
34
- Locked = LOCKED,
35
- Waiting = CONTENTED,
36
- };
37
-
38
32
public:
39
33
LIBC_INLINE constexpr Mutex (bool is_timed, bool is_recursive, bool is_robust,
40
34
bool is_pshared)
@@ -83,7 +77,6 @@ class Mutex final : private internal::RawMutex {
83
77
return MutexError::NONE;
84
78
return MutexError::BUSY;
85
79
}
86
- friend struct CndVar ;
87
80
};
88
81
89
82
} // namespace LIBC_NAMESPACE
You can’t perform that action at this time.
0 commit comments