Modify asterinas/kernel/src/process/posix_thread/mod.rs

This commit is contained in:
le-monde-bleu
2024-10-17 21:27:15 +08:00
committed by Tate, Hongliang Tian
parent 09204600c0
commit 54a807b5f7

View File

@ -299,7 +299,7 @@ impl PosixThread {
}
}
static POSIX_TID_ALLOCATOR: AtomicU32 = AtomicU32::new(0);
static POSIX_TID_ALLOCATOR: AtomicU32 = AtomicU32::new(1);
/// Allocates a new tid for the new posix thread
pub fn allocate_posix_tid() -> Tid {