19 lines
653 B
Plaintext
19 lines
653 B
Plaintext
#! @file waits.sakura
|
|
#! @author John Christman (sorakatadzuma@gmail.com)
|
|
#! @copyright Malunal Studios, LLC.
|
|
#! @license MIT
|
|
#!
|
|
#! Contains the functions Windows keeps for waiting on a word, of
|
|
#! `system::windows`, which `system` and the runtime wait and wake with. They are
|
|
#! a library of their own, and a file names one library on Windows.
|
|
|
|
extern import "api-ms-win-core-synch-l1-2-0.dll" when os == windows;
|
|
|
|
extern module system::windows when os == windows;
|
|
|
|
pub def WaitOnAddress(
|
|
at: *mut u32, compare: &u32, size: u64, milliseconds: u32
|
|
): i32;
|
|
pub def WakeByAddressSingle(at: *mut u32): void;
|
|
pub def WakeByAddressAll(at: *mut u32): void;
|