fix: fully use ThreadOptions while building new kernel thread

This commit is contained in:
jellllly420
2024-05-28 03:38:50 +08:00
committed by Tate, Hongliang Tian
parent 34e9d71fe4
commit 5a23de1932

View File

@ -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;