1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use super::*;
use alloc::sync::Arc;
mod exception;
mod job;
mod job_policy;
mod process;
mod suspend_token;
mod thread;
pub use {
self::exception::*, self::job::*, self::job_policy::*, self::process::*,
self::suspend_token::*, self::thread::*,
};
pub trait Task: Sync + Send {
fn kill(&self);
fn suspend(&self);
fn resume(&self);
fn exceptionate(&self) -> Arc<Exceptionate>;
fn debug_exceptionate(&self) -> Arc<Exceptionate>;
}
pub const TASK_RETCODE_SYSCALL_KILL: i64 = -1028;