Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parking_lot -> simple_mutex #219

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dyn-cache = { path = "dyn-cache", version = "0.12.0"}
futures = "0.3.5"
illicit = { path = "illicit", version = "1.1.1"}
moxie-macros = { path = "macros", version = "0.1.0-pre" }
parking_lot = "0.11"
simple-mutex = "1.1.5"
scopeguard = "1"
topo = { path = "topo", version = "0.13.0"}
tracing = "^0.1"
Expand Down
2 changes: 1 addition & 1 deletion dyn-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ downcast-rs = "1.1.1"
hash_hasher = "2.0.3"
hashbrown = "0.9.0"
illicit = { path = "../illicit", version = "1.1.1"}
parking_lot = "0.11.0"
simple-mutex = "1.1.5"
paste = "1.0.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion dyn-cache/src/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl std::panic::RefUnwindSafe for $shared {}
mod $test_mod {
use super::*;
use std::sync::Arc;
use parking_lot::Mutex;
use simple_mutex::Mutex;

#[test]
fn single_query_with_gc() {
Expand Down
2 changes: 1 addition & 1 deletion dyn-cache/src/dep_node.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::Liveness;
use illicit::AsContext;
use parking_lot::Mutex;
use simple_mutex::Mutex;
use std::{
cmp::Ordering,
hash::{Hash, Hasher},
Expand Down
2 changes: 1 addition & 1 deletion dyn-cache/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ pub mod local {

/// A thread-safe cache which requires stored types implement `Send`.
pub mod sync {
use parking_lot::Mutex;
use simple_mutex::Mutex;
use std::sync::Arc;

define_cache!(sync, SendCache: Send, Arc, Mutex::lock);
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub mod runtime;
pub mod testing;

use crate::runtime::{Context, Var};
use parking_lot::Mutex;
use simple_mutex::Mutex;
use std::{
borrow::Borrow,
fmt::{Debug, Display, Formatter, Result as FmtResult},
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/var.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{Commit, Key};
use parking_lot::Mutex;
use simple_mutex::Mutex;
use std::{sync::Arc, task::Waker};

/// The underlying container of state variables. Vends copies of the latest
Expand Down
2 changes: 1 addition & 1 deletion topo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2018"
dyn-cache = { path = "../dyn-cache", version = "0.12.0"}
illicit = { path = "../illicit", version = "1.1.1"}
once_cell = "1.4.0"
parking_lot = "0.11.0"
simple-mutex = "1.1.5"
topo-macro = { path = "macro", version = "0.10.0"}

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion topo/src/slot.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use dyn_cache::sync::SendCache;
use once_cell::sync::Lazy;
use parking_lot::Mutex;
use simple_mutex::Mutex;
use std::{
any::{type_name, TypeId},
borrow::Borrow,
Expand Down