deloxide 1.1.0

Deloxide scrubs your threads clean by detecting deadlocks in real time—keeping your system smooth, safe, and corrosion-free. 🦀🧼🔒
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use deloxide::{Deloxide, Mutex};

fn main() {
    Deloxide::new()
        .callback(|info| eprintln!("deadlock: {:?}", info.thread_cycle))
        .start()
        .expect("detector initialization");

    let value = Mutex::new(41);
    *value.lock() += 1;
    assert_eq!(*value.lock(), 42);
}