Add ThreadExt and clean up PosixThreadExt

This commit is contained in:
Ruihan Li
2024-11-10 17:15:08 +08:00
committed by Tate, Hongliang Tian
parent a4a8807a20
commit 9233d1cdbb
13 changed files with 46 additions and 57 deletions

View File

@ -348,7 +348,7 @@ macro_rules! log_syscall_entry {
let pid = $crate::current!().pid();
let tid = {
use $crate::process::posix_thread::PosixThreadExt;
$crate::current_thread!().tid()
$crate::current_thread!().as_posix_thread().unwrap().tid()
};
log::info!(
"[pid={}][tid={}][id={}][{}]",