Add CPU ID lock
This commit is contained in:
parent
9836b3cb56
commit
221b4c0116
3 changed files with 17 additions and 11 deletions
|
@ -35,6 +35,8 @@ pub struct Context {
|
|||
pub status: Status,
|
||||
/// Context running or not
|
||||
pub running: bool,
|
||||
/// CPU ID, if locked
|
||||
pub cpuid: Option<usize>,
|
||||
/// Context is halting parent
|
||||
pub vfork: bool,
|
||||
/// Context is being waited on
|
||||
|
@ -79,6 +81,7 @@ impl Context {
|
|||
egid: 0,
|
||||
status: Status::Blocked,
|
||||
running: false,
|
||||
cpuid: None,
|
||||
vfork: false,
|
||||
waitpid: Arc::new(WaitCondition::new()),
|
||||
wake: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue