win-events 0.0.2

A poor attempt to implement WaitForMultipleObjects and the ManualReset, AutoReset and Pulse types
Documentation
1
2
3
4
5
6
7
8
9
10
11
use win_events::{EventGuard, ManualResetEvent};

#[test]
fn test_event_guard() {
    let event = ManualResetEvent::new(false);
    assert!(!event.is_set());
    let event_guard = EventGuard::new(&event);
    assert!(event.is_set());
    drop(event_guard);
    assert!(!event.is_set());
}