Files
sakurac/runtime/win32/waits.sakura
T
2026-12-06 13:52:57 -06:00

21 lines
631 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
#! `runtime::win32`, which the runtime's threads 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 runtime::win32 when os == windows;
pub def WaitOnAddress(
at: *mut u32,
compare: &u32,
size: u64,
milliseconds: u32
): i32;
pub def WakeByAddressSingle(at: *mut u32): void;