Struct axprocess::signal::SignalModule
source · pub struct SignalModule {
pub sig_info: bool,
pub last_trap_frame_for_signal: Option<TrapFrame>,
pub signal_handler: Arc<Mutex<SignalHandler>>,
pub signal_set: SignalSet,
}
Expand description
信号处理模块,进程间不共享
Fields§
§sig_info: bool
是否存在siginfo
last_trap_frame_for_signal: Option<TrapFrame>
保存的trap上下文
signal_handler: Arc<Mutex<SignalHandler>>
信号处理函数集
signal_set: SignalSet
未决信号集
Implementations§
source§impl SignalModule
impl SignalModule
sourcepub fn init_signal(signal_handler: Option<Arc<Mutex<SignalHandler>>>) -> Self
pub fn init_signal(signal_handler: Option<Arc<Mutex<SignalHandler>>>) -> Self
初始化信号模块
Auto Trait Implementations§
impl !RefUnwindSafe for SignalModule
impl Send for SignalModule
impl Sync for SignalModule
impl Unpin for SignalModule
impl !UnwindSafe for SignalModule
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
Mutably borrows from an owned value. Read more