From 54a807b5f79a90fbc6b806e6c1ede1d816739629 Mon Sep 17 00:00:00 2001 From: le-monde-bleu <2301110750@pku.edu.cn> Date: Thu, 17 Oct 2024 21:27:15 +0800 Subject: [PATCH] Modify asterinas/kernel/src/process/posix_thread/mod.rs --- kernel/src/process/posix_thread/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/process/posix_thread/mod.rs b/kernel/src/process/posix_thread/mod.rs index 65f8573a8..186a4ada8 100644 --- a/kernel/src/process/posix_thread/mod.rs +++ b/kernel/src/process/posix_thread/mod.rs @@ -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 {