Skip to main content

Module job

Module job 

Source
Expand description

Exposes the job runtime module.

§Examples

ⓘ
use pharos_native::runtime::job;

Structs§

JobWorkerState
Shared state for one background job worker.

Enums§

JobWorkerLifecycleError
Error returned when a managed worker lifecycle operation cannot complete.

Constants§

WORKER_RUNNING 🔒
WORKER_STARTING 🔒
WORKER_STOPPED 🔒
WORKER_STOPPING 🔒

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.