Skip to main content

win_sync_sys/
lib.rs

1// Copyright (c) 2026 Mike Grier
2#![doc = include_str!("../README.md")]
3#![cfg(windows)]
4#![deny(missing_docs)]
5#![deny(unsafe_op_in_unsafe_fn)]
6
7mod apc;
8mod event;
9mod signal;
10#[cfg(test)]
11mod test_support;
12mod wait;
13mod wait_many;
14
15pub use apc::{queue_user_apc, queue_user_apc_to_current_thread};
16pub use event::{Event, ResetMode, WaitOnlyEvent};
17pub use signal::{Signalable, signal_object_and_wait};
18pub use wait::{Alertable, WaitOutcome, wait_for_single_object, wait_for_single_object_ex};
19pub use wait_many::{MAXIMUM_OBJECTS, WaitAnyOutcome, wait_for_all, wait_for_any};
20// `DuplicateHandle` is documented under Handles and Objects, so it lives in `win-handles-sys`; it is
21// re-exported here at the paths it had.
22pub use win_handles_sys::{Access, duplicate_handle_with_access};