Skip to content

Commit 518b42a

Browse files
committed
Renamed to 'anode'
1 parent c388781 commit 518b42a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+62
-55
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
22
members = [
3-
"libmutex",
4-
"libmutex-bench",
3+
"anode",
4+
"anode-bench",
55
]

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
2-
name = "libmutex-bench"
2+
name = "anode-bench"
33
version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7-
libmutex = { version = "0.1.0", path = "../libmutex" }
7+
anode = { version = "0.1.0", path = "../anode" }
88
parking_lot = { version = "0.12.1" }
File renamed without changes.
File renamed without changes.

libmutex-bench/src/bin/exec_bench.rs anode-bench/src/bin/exec_bench.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::time::Duration;
2-
use libmutex::executor::{Executor, Queue, ThreadPool};
3-
use libmutex_bench::{args, exec_harness};
4-
use libmutex_bench::exec_harness::{ExtendedOptions, Options};
5-
use libmutex_bench::exec_harness::print::{Header, Separator};
2+
use anode::executor::{Executor, Queue, ThreadPool};
3+
use anode_bench::{args, exec_harness};
4+
use anode_bench::exec_harness::{ExtendedOptions, Options};
5+
use anode_bench::exec_harness::print::{Header, Separator};
66

77
fn main() {
88
const QUEUE: Queue = Queue::Bounded(10000);

libmutex-bench/src/bin/pl_bench.rs anode-bench/src/bin/pl_bench.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// http://opensource.org/licenses/MIT>, at your option. This file may not be
66
// copied, modified, or distributed except according to those terms.
77

8-
use libmutex_bench::args::ArgRange;
9-
use libmutex_bench::{args, pl_harness};
10-
use libmutex_bench::pl_shims::{ArrivalOrderedLock, ParkingLotLock, ReadBiasedLock, StdLock, StochasticLock, WriteBiasedLock};
8+
use anode_bench::args::ArgRange;
9+
use anode_bench::{args, pl_harness};
10+
use anode_bench::pl_shims::{ArrivalOrderedLock, ParkingLotLock, ReadBiasedLock, StdLock, StochasticLock, WriteBiasedLock};
1111

1212
fn run_all(
1313
args: &[ArgRange],

libmutex-bench/src/bin/quad_bench.rs anode-bench/src/bin/quad_bench.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use std::sync::{Mutex, RwLock};
2-
use libmutex::xlock::{ArrivalOrdered, LegacyReadBiased, LegacyWriteBiased, Stochastic};
3-
use libmutex::xlock::ReadBiased;
4-
use libmutex::xlock::WriteBiased;
5-
use libmutex::xlock::XLock;
6-
use libmutex_bench::quad_harness::{ExtendedOptions, Options};
7-
use libmutex_bench::{args, quad_harness};
2+
use anode::xlock::{ArrivalOrdered, LegacyReadBiased, LegacyWriteBiased, Stochastic};
3+
use anode::xlock::ReadBiased;
4+
use anode::xlock::WriteBiased;
5+
use anode::xlock::XLock;
6+
use anode_bench::quad_harness::{ExtendedOptions, Options};
7+
use anode_bench::{args, quad_harness};
88
use std::time::Duration;
9-
use libmutex::spinlock::SpinLock;
10-
use libmutex_bench::lock_spec::LockSpec;
11-
use libmutex_bench::quad_harness::print::{Header, Separator};
9+
use anode::spinlock::SpinLock;
10+
use anode_bench::lock_spec::LockSpec;
11+
use anode_bench::quad_harness::print::{Header, Separator};
1212

1313
fn main() {
1414
let args = args::parse(&["readers", "writers", "downgraders", "upgraders", "duration"]);

libmutex-bench/src/exec_harness.rs anode-bench/src/exec_harness.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use libmutex::executor::{Executor};
1+
use anode::executor::{Executor};
22
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
33
use std::sync::{Arc};
44
use std::thread;
55
use std::time::{Duration, Instant};
6-
use libmutex::spinlock::SpinLock;
7-
use libmutex::wait;
8-
use libmutex::wait::Wait;
6+
use anode::spinlock::SpinLock;
7+
use anode::wait;
8+
use anode::wait::Wait;
99
use crate::rate::Elapsed;
1010

1111
pub mod print;
File renamed without changes.
File renamed without changes.

libmutex-bench/src/lock_spec.rs anode-bench/src/lock_spec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use libmutex::spinlock::{SpinGuard, SpinLock};
2-
use libmutex::remedy::Remedy;
3-
use libmutex::xlock::{LockReadGuard, LockWriteGuard, Moderator, UpgradeOutcome, XLock};
1+
use anode::spinlock::{SpinGuard, SpinLock};
2+
use anode::remedy::Remedy;
3+
use anode::xlock::{LockReadGuard, LockWriteGuard, Moderator, UpgradeOutcome, XLock};
44
use std::marker::PhantomData;
55
use std::ops::{Deref, DerefMut};
66
use std::sync::{MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};

libmutex-bench/src/lock_spec/tests.rs anode-bench/src/lock_spec/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::sync::Arc;
22
use std::thread;
33
use std::time::Duration;
4-
use libmutex::xlock::{ReadBiased, XLock};
4+
use anode::xlock::{ReadBiased, XLock};
55
use crate::lock_spec::LockSpec;
66

77
#[test]
File renamed without changes.

libmutex-bench/src/pl_shims.rs anode-bench/src/pl_shims.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// http://opensource.org/licenses/MIT>, at your option. This file may not be
66
// copied, modified, or distributed except according to those terms.
77

8-
use libmutex::xlock::{ArrivalOrdered, ReadBiased, Stochastic, WriteBiased, XLock};
8+
use anode::xlock::{ArrivalOrdered, ReadBiased, Stochastic, WriteBiased, XLock};
99
use crate::pl_harness::RwLock;
1010

1111
pub struct ReadBiasedLock<T>(XLock<T, ReadBiased>);

libmutex-bench/src/quad_harness.rs anode-bench/src/quad_harness.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::lock_spec::{LockSpec, ReadGuardSpec, WriteGuardSpec};
2-
use libmutex::xlock::UpgradeOutcome;
2+
use anode::xlock::UpgradeOutcome;
33
use std::sync::atomic::{AtomicBool, Ordering};
44
use std::sync::{Arc, Barrier};
55
use std::{hint, thread};
File renamed without changes.
File renamed without changes.

libmutex-bench/tests/pl_micro_bench.rs anode-bench/tests/pl_micro_bench.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use libmutex_bench::{pl_harness, pl_shims};
2-
use libmutex_bench::pl_harness::RwLock;
1+
use anode_bench::{pl_harness, pl_shims};
2+
use anode_bench::pl_harness::RwLock;
33

44
#[test]
55
fn pl_micro_bench_read_biased() {

libmutex-bench/tests/quad_rw_micro_bench.rs anode-bench/tests/quad_rw_micro_bench.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::any;
22
use std::time::Duration;
3-
use libmutex::xlock::{ArrivalOrdered, ReadBiased, Stochastic, WriteBiased, XLock};
4-
use libmutex_bench::lock_spec::LockSpec;
5-
use libmutex_bench::quad_harness;
6-
use libmutex_bench::quad_harness::{Addable, BoxedInt, ExtendedOptions, Options};
3+
use anode::xlock::{ArrivalOrdered, ReadBiased, Stochastic, WriteBiased, XLock};
4+
use anode_bench::lock_spec::LockSpec;
5+
use anode_bench::quad_harness;
6+
use anode_bench::quad_harness::{Addable, BoxedInt, ExtendedOptions, Options};
77

88
#[test]
99
fn quad_micro_bench_read_biased_int() {

libmutex-bench/tests/quad_spin_micro_bench.rs anode-bench/tests/quad_spin_micro_bench.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::any;
22
use std::time::Duration;
3-
use libmutex::spinlock::SpinLock;
4-
use libmutex_bench::lock_spec::LockSpec;
5-
use libmutex_bench::quad_harness;
6-
use libmutex_bench::quad_harness::{Addable, BoxedInt, ExtendedOptions, Options};
3+
use anode::spinlock::SpinLock;
4+
use anode_bench::lock_spec::LockSpec;
5+
use anode_bench::quad_harness;
6+
use anode_bench::quad_harness::{Addable, BoxedInt, ExtendedOptions, Options};
77

88
#[test]
99
fn quad_micro_bench_int() {

anode/Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "anode"
3+
version = "0.1.0"
4+
edition = "2021"
5+
readme = "../README.md"
6+
authors = ["Emil Koutanov"]
7+
license = "MIT"
8+
description = "Concurrency library for Rust."
9+
repository = "https://github.com/obsidiandynamics/anode"
10+
11+
[dev-dependencies]
12+
rand = "0.8.5"

libmutex/LICENSE anode/LICENSE

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libmutex/src/main.rs anode/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use libmutex::rand::{clock_seed, Probability, Rand64, Seeded, Xorshift};
1+
use anode::rand::{clock_seed, Probability, Rand64, Seeded, Xorshift};
22

33
fn main() {
44
//TODO

libmutex/src/monitor.rs anode/src/monitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub trait Monitor<S: ?Sized> {
1515
///
1616
/// # Examples
1717
/// ```
18-
/// use libmutex::monitor::{Monitor, SpeculativeMonitor};
18+
/// use anode::monitor::{Monitor, SpeculativeMonitor};
1919
/// struct State {
2020
/// foo: u64
2121
/// }
@@ -34,7 +34,7 @@ pub trait Monitor<S: ?Sized> {
3434
///
3535
/// # Examples
3636
/// ```
37-
/// use libmutex::monitor::{Monitor, SpeculativeMonitor};
37+
/// use anode::monitor::{Monitor, SpeculativeMonitor};
3838
/// struct State {
3939
/// foo: u64,
4040
/// bar: u64,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libmutex/src/rand.rs anode/src/rand.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub trait Rand64 {
1212
///
1313
/// # Example
1414
/// ```
15-
/// use libmutex::rand::{Probability, Rand64, Xorshift};
15+
/// use anode::rand::{Probability, Rand64, Xorshift};
1616
/// let mut rng = Xorshift::default();
1717
/// println!("{}", rng.gen_bool(Probability::new(1.0 / 3.0)));
1818
/// ```
@@ -39,7 +39,7 @@ impl Probability {
3939
///
4040
/// # Example
4141
/// ```
42-
/// use libmutex::rand::Probability;
42+
/// use anode::rand::Probability;
4343
/// let p = Probability::new(0.25);
4444
/// assert_eq!(0.25, p.into());
4545
/// ```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libmutex/src/test_utils.rs anode/src/test_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<T> RefUnwindSafe for UnwindableRefCell<T> {}
7070
///
7171
/// # Examples (not compiled)
7272
/// ```
73-
/// use libmutex::test_utils::spawn_blocked;
73+
/// use anode::test_utils::spawn_blocked;
7474
/// let thread = spawn_blocked(|| {
7575
/// // wait_for_something_important
7676
/// });
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libmutex/Cargo.toml

-7
This file was deleted.

0 commit comments

Comments
 (0)