Skip to content

Commit

Permalink
feat: don't block on update
Browse files Browse the repository at this point in the history
  • Loading branch information
threadexio committed Aug 30, 2024
1 parent a530bf9 commit 41d21e1
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 350 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ keywords = ["rcu", "synchronization", "concurrent", "parallel", "lock-free"]
categories = ["concurrency"]

[dependencies]
portable-atomic = { version = "1", default-features = false }

[features]
default = ["std"]

std = []

default = ["std"]
10 changes: 0 additions & 10 deletions src/cfg.rs

This file was deleted.

10 changes: 3 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//! use std::thread;
//! use std::time::Duration;
//!
//! type Rcu<T> = rcurs::Rcu<T, rcurs::Spin>;
//! use rcurs::Rcu;
//!
//! #[derive(Debug, Clone, PartialEq, Eq)]
//! struct User {
Expand Down Expand Up @@ -101,13 +101,9 @@
)]
#![cfg_attr(not(feature = "std"), no_std)]

mod cfg;
extern crate alloc;

mod notify;
mod rcu;
mod refs;

#[doc(inline)]
pub use self::notify::*;

#[doc(inline)]
pub use self::rcu::{Guard, Rcu};
49 changes: 0 additions & 49 deletions src/notify/blocking.rs

This file was deleted.

132 changes: 0 additions & 132 deletions src/notify/mod.rs

This file was deleted.

24 changes: 0 additions & 24 deletions src/notify/spin.rs

This file was deleted.

24 changes: 0 additions & 24 deletions src/notify/yield.rs

This file was deleted.

Loading

0 comments on commit 41d21e1

Please sign in to comment.