diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-04-06 12:50:02 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-04-12 08:44:38 +0200 |
| commit | bd61bec67d23e11a37a19a3a554753419c734947 (patch) | |
| tree | 53fd86c91baaa8025d32d75479db5523cdeaa5d5 /library/std/src/sys/unix/locks/mod.rs | |
| parent | c62c8cb82d18ee36bc47e12e5722d51cc011f133 (diff) | |
| download | rust-bd61bec67d23e11a37a19a3a554753419c734947.tar.gz rust-bd61bec67d23e11a37a19a3a554753419c734947.zip | |
Add futex-based ReentrantMutex on Linux.
Diffstat (limited to 'library/std/src/sys/unix/locks/mod.rs')
| -rw-r--r-- | library/std/src/sys/unix/locks/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/library/std/src/sys/unix/locks/mod.rs b/library/std/src/sys/unix/locks/mod.rs index 85afc939d2e..e0404f40c69 100644 --- a/library/std/src/sys/unix/locks/mod.rs +++ b/library/std/src/sys/unix/locks/mod.rs @@ -5,11 +5,7 @@ cfg_if::cfg_if! { ))] { mod futex; mod futex_rwlock; - #[allow(dead_code)] - mod pthread_mutex; // Only used for PthreadMutexAttr, needed by pthread_remutex. - mod pthread_remutex; // FIXME: Implement this using a futex - pub use futex::{Mutex, MovableMutex, Condvar, MovableCondvar}; - pub use pthread_remutex::ReentrantMutex; + pub use futex::{Mutex, MovableMutex, Condvar, MovableCondvar, ReentrantMutex}; pub use futex_rwlock::{RwLock, MovableRwLock}; } else { mod pthread_mutex; |
