Struct pconvert_rust::parallelism::ThreadPoolStatus
source · pub struct ThreadPoolStatus { /* private fields */ }Expand description
Represents the status of the thread pool (e.g. size, queued jobs, active jobs).
Status counts use Atomic* data types in order to be safely shared across workers.
Implementations§
source§impl ThreadPoolStatus
impl ThreadPoolStatus
pub fn new(size: usize) -> Self
pub fn size(&self) -> usize
pub fn queued(&self) -> usize
pub fn active(&self) -> usize
pub fn inc_queued_count(&self)
pub fn dec_queued_count(&self)
pub fn inc_active_count(&self)
pub fn dec_active_count(&self)
pub fn inc_size(&self)
pub fn dec_size(&self)
Trait Implementations§
source§impl Clone for ThreadPoolStatus
impl Clone for ThreadPoolStatus
source§impl IntoPyDict for ThreadPoolStatus
impl IntoPyDict for ThreadPoolStatus
source§fn into_py_dict(self, py: Python<'_>) -> &PyDict
fn into_py_dict(self, py: Python<'_>) -> &PyDict
Converts self into a
PyDict object pointer. Whether pointer owned or borrowed
depends on implementation.