pub struct ThreadGroupMutableState {Show 15 fields
pub parent: Option<ThreadGroupParent>,
pub exit_signal: Option<Signal>,
pub children: BTreeMap<pid_t, Weak<ThreadGroup>>,
pub zombie_children: Vec<OwnedRef<ZombieProcess>>,
pub zombie_ptracees: ZombiePtracees,
pub deferred_zombie_ptracers: Vec<DeferredZombiePTracer>,
pub lifecycle_waiters: TypedWaitQueue<ThreadGroupLifecycleWaitValue>,
pub is_child_subreaper: bool,
pub process_group: Arc<ProcessGroup>,
pub did_exec: bool,
pub last_signal: Option<SignalInfo>,
pub children_time_stats: TaskTimeStats,
pub personality: PersonalityFlags,
pub allowed_ptracers: PtraceAllowedPtracers,
pub notifier: Option<Sender<MemoryAttributionLifecycleEvent>>,
/* private fields */
}Expand description
The mutable state of the ThreadGroup.
Fields§
§parent: Option<ThreadGroupParent>The parent thread group.
The value needs to be writable so that it can be re-parent to the correct subreaper if the parent ends before the child.
exit_signal: Option<Signal>The signal this process generates on exit.
children: BTreeMap<pid_t, Weak<ThreadGroup>>The children of this thread group.
The references to ThreadGroup is weak to prevent cycles as ThreadGroup have a Arc reference to their parent. It is still expected that these weak references are always valid, as thread groups must unregister themselves before they are deleted.
zombie_children: Vec<OwnedRef<ZombieProcess>>Child tasks that have exited, but not yet been waited for.
zombie_ptracees: ZombiePtraceesptracees of this process that have exited, but not yet been waited for.
deferred_zombie_ptracers: Vec<DeferredZombiePTracer>Child processes that have exited, but the zombie ptrace needs to be consumed before they can be waited for.
lifecycle_waiters: TypedWaitQueue<ThreadGroupLifecycleWaitValue>Unified [WaitQueue] for all waited ThreadGroup events.
is_child_subreaper: boolWhether this thread group will inherit from children of dying processes in its descendant tree.
process_group: Arc<ProcessGroup>The IDs used to perform shell job control.
did_exec: bool§last_signal: Option<SignalInfo>A signal that indicates whether the process is going to become waitable
via waitid and waitpid for either WSTOPPED or WCONTINUED, depending on
the value of stopped. If not None, contains the SignalInfo to return.
children_time_stats: TaskTimeStatsTime statistics accumulated from the children.
personality: PersonalityFlagsPersonality flags set with sys_personality().
allowed_ptracers: PtraceAllowedPtracersThread groups allowed to trace tasks in this this thread group.
notifier: Option<Sender<MemoryAttributionLifecycleEvent>>Notifier for name changes.
Auto Trait Implementations§
impl Freeze for ThreadGroupMutableState
impl !RefUnwindSafe for ThreadGroupMutableState
impl Send for ThreadGroupMutableState
impl Sync for ThreadGroupMutableState
impl Unpin for ThreadGroupMutableState
impl !UnwindSafe for ThreadGroupMutableState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more