diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-03-21 15:45:51 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-03-22 18:19:47 +0100 |
| commit | 733153f2e550d46fe6f794c969df91368580e0b8 (patch) | |
| tree | 0e0f103b6e9d7af878c744eb8cf057dfbec4e018 /library/std/src/sys/solid | |
| parent | ac6996345de2cc482cb164335336b9af1b03a320 (diff) | |
| download | rust-733153f2e550d46fe6f794c969df91368580e0b8.tar.gz rust-733153f2e550d46fe6f794c969df91368580e0b8.zip | |
Move std::sys::{mutex, condvar, rwlock} to std::sys::locks.
Diffstat (limited to 'library/std/src/sys/solid')
| -rw-r--r-- | library/std/src/sys/solid/mod.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/library/std/src/sys/solid/mod.rs b/library/std/src/sys/solid/mod.rs index 049460755d6..492b1a55475 100644 --- a/library/std/src/sys/solid/mod.rs +++ b/library/std/src/sys/solid/mod.rs @@ -37,14 +37,21 @@ pub mod path; pub mod pipe; #[path = "../unsupported/process.rs"] pub mod process; -pub mod rwlock; pub mod stdio; -pub use self::itron::{condvar, mutex, thread}; +pub use self::itron::thread; pub mod memchr; pub mod thread_local_dtor; pub mod thread_local_key; pub mod time; +mod rwlock; + +pub mod locks { + pub use super::itron::condvar::*; + pub use super::itron::mutex::*; + pub use super::rwlock::*; +} + // SAFETY: must be called only once during runtime initialization. // NOTE: this is not guaranteed to run, for example when Rust code is called externally. pub unsafe fn init(_argc: isize, _argv: *const *const u8) {} |
