Expand description
Exposes the job runtime module.
§Examples
ⓘ
use pharos_native::runtime::job;§Related
crate::runtimefor sibling modules in the same crate.
Structs§
- JobWorker
State - Shared state for one background job worker.
Enums§
- JobWorker
Lifecycle Error - Error returned when a managed worker lifecycle operation cannot complete.
Constants§
Functions§
- job_
worker_ is_ running - Returns whether the worker has entered its running state.
- job_
worker_ poll_ once - Runs one bounded durable job-dispatch poll operation.
- job_
worker_ sleep_ or_ shutdown - Sleeps in bounded slices and reports whether shutdown was not requested.
- job_
worker_ start - Starts one managed worker thread for the supplied state.
- job_
worker_ stop - Signals a managed worker, joins it, and releases its owned thread handle.
- job_
worker_ strdup_ local - Makes an owned Rust copy of an optional C-style string value.
- job_
worker_ thread_ main - Runs the worker until shutdown or the optional completed-poll limit.