mac-process 0.1.0

User-mode library for querying and verifying integrity of MacOS processes
//! Types for macOS-specific information about a process' work queues
use crate::libproc::proc_pid::{PIDInfo, PidInfoFlavor};

/// Structure for work queue items
#[derive(Default)]
pub struct WorkQueueInfo {
    /// total number of workqueue threads
    pub pwq_nthreads: u32,
    /// total number of running workqueue threads
    pub pwq_runthreads: u32,
    /// total number of blocked workqueue threads
    pub pwq_blockedthreads: u32,
    /// reserved for future use
    pub reserved: [u32; 1],
}

impl PIDInfo for WorkQueueInfo {
    fn flavor() -> PidInfoFlavor {
        PidInfoFlavor::WorkQueueInfo
    }
}