Rename (Posix)ThreadExt to As(Posix)Thread

This commit is contained in:
Ruihan Li
2024-11-12 09:53:01 +08:00
committed by Tate, Hongliang Tian
parent 9233d1cdbb
commit e6c613f538
19 changed files with 30 additions and 30 deletions

View File

@ -8,7 +8,7 @@ use super::SyscallReturn;
use crate::{
prelude::*,
process::{
posix_thread::{thread_table, PosixThreadExt},
posix_thread::{thread_table, AsPosixThread},
process_table,
},
time::{

View File

@ -347,7 +347,7 @@ macro_rules! log_syscall_entry {
let syscall_name_str = stringify!($syscall_name);
let pid = $crate::current!().pid();
let tid = {
use $crate::process::posix_thread::PosixThreadExt;
use $crate::process::posix_thread::AsPosixThread;
$crate::current_thread!().as_posix_thread().unwrap().tid()
};
log::info!(

View File

@ -5,7 +5,7 @@ use core::sync::atomic::Ordering;
use super::SyscallReturn;
use crate::{
prelude::*,
process::{posix_thread::PosixThreadExt, process_table, Pgid, Pid, Process, Uid},
process::{posix_thread::AsPosixThread, process_table, Pgid, Pid, Process, Uid},
sched::priority::{Nice, NiceRange},
};

View File

@ -7,7 +7,7 @@ use super::{
use crate::{
prelude::*,
process::{
posix_thread::{thread_table, PosixThreadExt},
posix_thread::{thread_table, AsPosixThread},
process_table,
signal::{
c_types::{sigevent_t, SigNotify},