Io module

Wake_State

structforeignextensionexperimentalSource

Fields

allocator: Allocator
read_handle: Handle
write_fd: s64
op: *Op
The READ on the pipe, while one is outstanding.
buffer: [64] u8
outstanding: s64
Jobs handed out whose answer has not been collected yet, ones nobody waits for included. A job holds a helper from the time it is queued, so this is also the number of helpers needed.
inflight: *Resolve_Job
jobs_made: s64
Jobs made over this scheduler's life (for tests and diagnostics).
mutex: Thread.Mutex
Shared with the helper threads.
queue_head: *Resolve_Job
queue_tail: *Resolve_Job
done_head: *Resolve_Job
done_tail: *Resolve_Job
quitting: bool
helpers_started: s64
delay_ms: s64
For tests: JAI_IO_RESOLVE_DELAY_MS makes every lookup wait that long first, so a test can cancel a lookup that is certainly still under way. Read once per scheduler; 0 normally.

See also