kernel: Remove Thread::alarm

This commit is contained in:
Pawel Dziepak 2013-11-07 01:40:02 +01:00
parent aa4aca0264
commit 83983eaf38
2 changed files with 0 additions and 8 deletions

View File

@ -420,7 +420,6 @@ struct Thread : TeamThreadIteratorEntry<thread_id>, 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

View File

@ -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*().
}