mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 11:53:24 +00:00
Remove cpu_affinity field from OSTD Task struct
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
8927031426
commit
9cc63149f1
@ -2,7 +2,7 @@
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
use ostd::{task::Task, user::UserSpace};
|
||||
use ostd::{cpu::CpuSet, task::Task, user::UserSpace};
|
||||
|
||||
use super::{thread_table, PosixThread};
|
||||
use crate::{
|
||||
@ -113,11 +113,13 @@ impl PosixThreadBuilder {
|
||||
|
||||
let status = ThreadStatus::Init;
|
||||
let priority = Priority::default();
|
||||
let cpu_affinity = CpuSet::new_full();
|
||||
let thread = Arc::new(Thread::new(
|
||||
weak_task.clone(),
|
||||
posix_thread,
|
||||
status,
|
||||
priority,
|
||||
cpu_affinity,
|
||||
));
|
||||
|
||||
thread_table::add_thread(tid, thread.clone());
|
||||
|
Reference in New Issue
Block a user