* Removed B_{MIN|MAX}_PRIORITY from OS.h - they were never really intended
as public defines. They are now called THREAD_{MIN|MAX}_SET_PRIORITY to
better reflect what they are for. Minimum priority is now 1, ie. you no
longer can set another thread to the idle priority. This fixes part of
ticket #2959.
* set_thread_priority() will no longer allow to change the priority of the
idle thread to something else. This fixes the rest of ticket #2959.
* Automatic whitespace cleanup in OS.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28521 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,6 +34,9 @@ enum additional_thread_state {
|
||||
// THREAD_STATE_BIRTH // thread is being created
|
||||
};
|
||||
|
||||
#define THREAD_MIN_SET_PRIORITY B_LOWEST_ACTIVE_PRIORITY
|
||||
#define THREAD_MAX_SET_PRIORITY B_REAL_TIME_PRIORITY
|
||||
|
||||
enum team_state {
|
||||
TEAM_STATE_NORMAL, // normal state
|
||||
TEAM_STATE_BIRTH, // being contructed
|
||||
@@ -49,6 +52,7 @@ typedef enum job_control_state {
|
||||
JOB_CONTROL_STATE_DEAD
|
||||
} job_control_state;
|
||||
|
||||
|
||||
struct image; // defined in image.c
|
||||
struct realtime_sem_context; // defined in realtime_sem.cpp
|
||||
struct select_info;
|
||||
|
||||
Reference in New Issue
Block a user