kernel: Remove Thread::alarm
This commit is contained in:
parent
aa4aca0264
commit
83983eaf38
|
@ -420,7 +420,6 @@ struct Thread : TeamThreadIteratorEntry<thread_id>, KernelReferenceable,
|
||||||
int64 serial_number; // immutable after adding thread to hash
|
int64 serial_number; // immutable after adding thread to hash
|
||||||
Thread *hash_next; // protected by thread hash lock
|
Thread *hash_next; // protected by thread hash lock
|
||||||
Thread *team_next; // protected by team lock and fLock
|
Thread *team_next; // protected by team lock and fLock
|
||||||
timer alarm; // protected by scheduler lock
|
|
||||||
char name[B_OS_NAME_LENGTH]; // protected by fLock
|
char name[B_OS_NAME_LENGTH]; // protected by fLock
|
||||||
int32 priority; // protected by scheduler lock
|
int32 priority; // protected by scheduler lock
|
||||||
int32 io_priority; // protected by fLock
|
int32 io_priority; // protected by fLock
|
||||||
|
|
|
@ -214,8 +214,6 @@ Thread::Thread(const char* name, thread_id threadID, struct cpu_ent* cpu)
|
||||||
else
|
else
|
||||||
strcpy(this->name, "unnamed thread");
|
strcpy(this->name, "unnamed thread");
|
||||||
|
|
||||||
alarm.period = 0;
|
|
||||||
|
|
||||||
exit.status = 0;
|
exit.status = 0;
|
||||||
|
|
||||||
list_init(&exit.waiters);
|
list_init(&exit.waiters);
|
||||||
|
@ -1925,9 +1923,6 @@ thread_exit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (team != kernelTeam) {
|
if (team != kernelTeam) {
|
||||||
// Cancel previously installed alarm timer, if any.
|
|
||||||
cancel_timer(&thread->alarm);
|
|
||||||
|
|
||||||
// Delete all user timers associated with the thread.
|
// Delete all user timers associated with the thread.
|
||||||
ThreadLocker threadLocker(thread);
|
ThreadLocker threadLocker(thread);
|
||||||
thread->DeleteUserTimers(false);
|
thread->DeleteUserTimers(false);
|
||||||
|
@ -2345,8 +2340,6 @@ thread_reset_for_exec(void)
|
||||||
|
|
||||||
// reset thread CPU time clock
|
// reset thread CPU time clock
|
||||||
thread->cpu_clock_offset = -thread->CPUTime(false);
|
thread->cpu_clock_offset = -thread->CPUTime(false);
|
||||||
|
|
||||||
// Note: We don't cancel an alarm. It is supposed to survive exec*().
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue