diff --git a/headers/private/kernel/thread_types.h b/headers/private/kernel/thread_types.h index 4ae7ad823a..ec1d53f3c3 100644 --- a/headers/private/kernel/thread_types.h +++ b/headers/private/kernel/thread_types.h @@ -420,7 +420,6 @@ struct Thread : TeamThreadIteratorEntry, KernelReferenceable, int64 serial_number; // immutable after adding thread to hash Thread *hash_next; // protected by thread hash lock Thread *team_next; // protected by team lock and fLock - timer alarm; // protected by scheduler lock char name[B_OS_NAME_LENGTH]; // protected by fLock int32 priority; // protected by scheduler lock int32 io_priority; // protected by fLock diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index 2125fc1e2e..e3b4a58954 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -214,8 +214,6 @@ Thread::Thread(const char* name, thread_id threadID, struct cpu_ent* cpu) else strcpy(this->name, "unnamed thread"); - alarm.period = 0; - exit.status = 0; list_init(&exit.waiters); @@ -1925,9 +1923,6 @@ thread_exit(void) } if (team != kernelTeam) { - // Cancel previously installed alarm timer, if any. - cancel_timer(&thread->alarm); - // Delete all user timers associated with the thread. ThreadLocker threadLocker(thread); thread->DeleteUserTimers(false); @@ -2345,8 +2340,6 @@ thread_reset_for_exec(void) // reset thread CPU time clock thread->cpu_clock_offset = -thread->CPUTime(false); - - // Note: We don't cancel an alarm. It is supposed to survive exec*(). }