Introduced a next_priority field to struct thread that will be used when
enqueueing a thread to the run queue. This mechanism is now used for the thread priority boost on semaphore release. Also, those threads are no longer made real time threads, they now get a temporary priority of B_FIRST_REAL_TIME_PRIORITY - 1. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16165 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2005, Haiku Inc.
|
||||
* Copyright 2004-2006, Haiku Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Thread definition and structures
|
||||
@@ -135,6 +135,7 @@ struct thread {
|
||||
thread_id id;
|
||||
char name[B_OS_NAME_LENGTH];
|
||||
int32 priority;
|
||||
int32 next_priority;
|
||||
int32 state;
|
||||
int32 next_state;
|
||||
union cpu_ent *cpu;
|
||||
|
||||
Reference in New Issue
Block a user