Skip to content

Latest commit

 

History

History
86 lines (51 loc) · 2.4 KB

File-std-threading-ml-508437988.md

File metadata and controls

86 lines (51 loc) · 2.4 KB

std/threading.ml

Home · Files

Provides the std threading package.

Package: std.threading

Reachable from entry: no

Declarations

INFINITE

const INFINITE = 4294967295

Track the infinite value used by this standard-library module.

Source: std/threading.ml:33

MAX_NATIVE_SEMAPHORE_COUNT

const MAX_NATIVE_SEMAPHORE_COUNT = 2147483647

Track the max native semaphore count value used by this standard-library module.

Source: std/threading.ml:22

MAX_PORTABLE_TIMEOUT_MS

const MAX_PORTABLE_TIMEOUT_MS = 2147483647

Native timeout/count parameters are signed 32-bit values on at least one supported target. Keeping the shared API inside this range avoids truncation and platform-dependent interpretations of the high bit.

Source: std/threading.ml:20

WAIT_ABANDONED

const WAIT_ABANDONED = 128

Track the wait abandoned value used by this standard-library module.

Source: std/threading.ml:29

WAIT_OBJECT_0

const WAIT_OBJECT_0 = 0

Native Win32 synchronization primitives. All MiniLang objects live in the process-wide managed heap; these handles serialize access between the OS threads and their private stacks. Close only after users/waiters have stopped.

Source: std/threading.ml:27

WAIT_TIMEOUT

const WAIT_TIMEOUT = 258

Track the wait timeout value used by this standard-library module.

Source: std/threading.ml:31