Skip to content

Commit

Permalink
Merge pull request #19 from hermit-os/interrupt-mutex-crate
Browse files Browse the repository at this point in the history
chore: migrate to interrupt-mutex crate
  • Loading branch information
mkroening authored Oct 8, 2023
2 parents f71f5e7 + 1fb8bfd commit 548cc85
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 77 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ categories = ["rust-patterns", "no-std"]
exclusive_cell = "0.1"
generic_once_cell = "0.1"
interrupts = "0.1"
interrupt-mutex = "0.1"
lock_api = "0.4"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ pub(crate) mod mutex;
pub(crate) mod rwlock;

pub use exclusive_cell::{CallOnce, CallOnceError, ExclusiveCell};
pub use interrupt_mutex::{InterruptMutex, InterruptMutexGuard, RawInterruptMutex};
pub use interrupts::without as without_interrupts;
pub use mutex::interrupt::{InterruptMutex, InterruptMutexGuard, RawInterruptMutex};
pub use mutex::spin::{RawSpinMutex, SpinMutex, SpinMutexGuard};
pub use mutex::ticket::{RawTicketMutex, TicketMutex, TicketMutexGuard};
pub use mutex::{
Expand Down
74 changes: 0 additions & 74 deletions src/mutex/interrupt.rs

This file was deleted.

3 changes: 1 addition & 2 deletions src/mutex/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pub(crate) mod interrupt;
pub(crate) mod spin;
pub(crate) mod ticket;

use interrupt::RawInterruptMutex;
use interrupt_mutex::RawInterruptMutex;
use spin::RawSpinMutex;
use ticket::RawTicketMutex;

Expand Down

0 comments on commit 548cc85

Please sign in to comment.