bau 0.4.0

Fun, simple signaling library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
  let resource = 11;
  let semaphore = bau::Semaphore::new(10, resource);

  std::thread::spawn(move || {
    let resource = semaphore.wait().unwrap();
    let _: i32 = *resource + *resource; // Critical section
    // Call to signal upon exit
  });

  println!("BAU BAU!");
}