summaryrefslogtreecommitdiffstats
path: root/src/mutex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mutex.rs')
-rw-r--r--src/mutex.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mutex.rs b/src/mutex.rs
index df28ffc..e49df9c 100644
--- a/src/mutex.rs
+++ b/src/mutex.rs
@@ -1,10 +1,10 @@
-pub type Mutex<T> = async_std::sync::Arc<async_std::sync::Mutex<T>>;
-pub type Guard<T> = async_std::sync::MutexGuardArc<T>;
+pub type Mutex<T> = std::sync::Arc<tokio::sync::Mutex<T>>;
+pub type Guard<T> = tokio::sync::OwnedMutexGuard<T>;
-pub fn new<T>(t: T) -> async_std::sync::Arc<async_std::sync::Mutex<T>> {
- async_std::sync::Arc::new(async_std::sync::Mutex::new(t))
+pub fn new<T>(t: T) -> Mutex<T> {
+ std::sync::Arc::new(tokio::sync::Mutex::new(t))
}
pub fn clone<T>(m: &Mutex<T>) -> Mutex<T> {
- async_std::sync::Arc::clone(m)
+ std::sync::Arc::clone(m)
}