mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
fix: fully use ThreadOptions while building new kernel thread
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
34e9d71fe4
commit
5a23de1932
@ -44,6 +44,8 @@ impl KernelThreadExt for Thread {
|
||||
let weal_thread = thread_ref.clone();
|
||||
let task = TaskOptions::new(thread_fn)
|
||||
.data(weal_thread)
|
||||
.priority(thread_options.priority)
|
||||
.cpu_affinity(thread_options.cpu_affinity)
|
||||
.build()
|
||||
.unwrap();
|
||||
let status = ThreadStatus::Init;
|
||||
|
Reference in New Issue
Block a user