summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/sync/mod.rs')
-rw-r--r--tokio/src/sync/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs
index ed9f07a0..ddb289eb 100644
--- a/tokio/src/sync/mod.rs
+++ b/tokio/src/sync/mod.rs
@@ -437,7 +437,7 @@ cfg_sync! {
mod mutex;
pub use mutex::{Mutex, MutexGuard, TryLockError, OwnedMutexGuard};
- mod notify;
+ pub(crate) mod notify;
pub use notify::Notify;
pub mod oneshot;
@@ -464,8 +464,8 @@ cfg_not_sync! {
pub(crate) use mutex::Mutex;
}
- mod notify;
- pub(crate) use notify::Notify;
+ #[cfg(any(feature = "rt-core", feature = "signal", all(unix, feature = "process")))]
+ pub(crate) mod notify;
cfg_atomic_waker_impl! {
mod task;