diff options
| author | bors <bors@rust-lang.org> | 2020-10-01 13:21:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-01 13:21:34 +0000 |
| commit | 782013564efc06ef02614ba35a4e67dee4fcb8e7 (patch) | |
| tree | 2e905ff25153425fe0389ea1db074a72edcd7934 /library/std/src/sys/unix/mod.rs | |
| parent | 9cba260df0f1c67ea3690035cd5611a7465a1560 (diff) | |
| parent | 0b73fd7105db81a994a81b775a43bbdb1be3c76a (diff) | |
| download | rust-782013564efc06ef02614ba35a4e67dee4fcb8e7.tar.gz rust-782013564efc06ef02614ba35a4e67dee4fcb8e7.zip | |
Auto merge of #76919 - fusion-engineering-forks:thread-parker, r=dtolnay
Use futex-based thread::park/unpark on Linux. This moves the parking/unparking logic out of `thread/mod.rs` into a module named `thread_parker` in `sys_common`. The current implementation is moved to `sys_common/thread_parker/generic.rs` and the new implementation using futexes is added in `sys_common/thread_parker/futex.rs`.
Diffstat (limited to 'library/std/src/sys/unix/mod.rs')
| -rw-r--r-- | library/std/src/sys/unix/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/mod.rs b/library/std/src/sys/unix/mod.rs index 00680fadc18..776f4f18ecf 100644 --- a/library/std/src/sys/unix/mod.rs +++ b/library/std/src/sys/unix/mod.rs @@ -49,6 +49,7 @@ pub mod env; pub mod ext; pub mod fd; pub mod fs; +pub mod futex; pub mod io; #[cfg(target_os = "l4re")] mod l4re; |
