Skip to content

Commit ba1bd28

Browse files
committed
Switch conc to parking_lot Mutex instead of spinlocks.
1 parent deb2ea2 commit ba1bd28

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

conc/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "conc"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["ticki <[email protected]>"]
55
description = "Hazard-pointer-based concurrent memory reclamation."
66
repository = "https://github.com/ticki/tfs"
@@ -12,7 +12,7 @@ exclude = ["target", "Cargo.lock"]
1212
[dependencies]
1313
lazy_static = "0.2"
1414
rand = "0.3"
15-
spin = "0.4"
15+
parking_lot = "0.4"
1616

1717
[dependencies.backtrace]
1818
version = "0.3"

conc/src/global.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The global state.
22
3-
use spin::Mutex;
3+
use parking_lot::Mutex;
44
use std::collections::HashSet;
55
use std::{mem, panic};
66
use {rand, hazard, mpsc, debug, settings};

conc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
#[macro_use]
151151
extern crate lazy_static;
152152
extern crate rand;
153-
extern crate spin;
153+
extern crate parking_lot;
154154

155155
mod atomic;
156156
mod debug;

conc/src/mpsc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! although this is reasonably fast as the lock is only held for very short time, it is
99
//! sub-optimal, and blocking.
1010
11-
use spin::Mutex;
11+
use parking_lot::Mutex;
1212
use std::sync::Arc;
1313
use std::mem;
1414

0 commit comments

Comments
 (0)