/haiku-fatelf/src/apps/processcontroller/ |
H A D | PriorityMenu.cpp | 33 PriorityMenu::PriorityMenu(thread_id thread, int32 priority) argument 36 fPriority(priority) 42 PriorityMenu::Update(int32 priority) argument 44 if (priority != fPriority && CountItems() > 0) 49 fPriority = priority; 55 long priority; member in struct:__anon3108 59 { B_TRANSLATE("Idle priority"), 0 }, 60 { B_TRANSLATE("Lowest active priority"), 1 }, 61 { B_TRANSLATE("Low priority"), 5 }, 62 { B_TRANSLATE("Normal priority"), 1 82 PriorityRec *priority = &priorities[index]; local [all...] |
H A D | PriorityMenu.h | 33 PriorityMenu (thread_id thread, int32 priority); 35 void Update (int32 priority);
|
/haiku-fatelf/src/bin/coreutils/man/ |
H A D | nice.x | 2 nice \- run a program with modified scheduling priority
|
/haiku-fatelf/src/build/libbe/app/ |
H A D | Looper.cpp | 10 BLooper::BLooper(const char* name, int32 priority, int32 port_capacity) argument
|
/haiku-fatelf/src/kits/tracker/ |
H A D | Thread.cpp | 40 SimpleThread::SimpleThread(int32 priority, const char* name) argument 42 fPriority(priority), 76 Thread::Launch(FunctionObject* functor, int32 priority, const char* name) argument 78 new Thread(functor, priority, name); 82 Thread::Thread(FunctionObject* functor, int32 priority, const char* name) argument 83 : SimpleThread(priority, name), 107 int32 priority) 113 new ThreadSequence(list, priority); 118 int32 priority) 119 : SimpleThread(priority), 106 Launch(BObjectList<FunctionObject>* list, bool async, int32 priority) argument 117 ThreadSequence(BObjectList<FunctionObject>* list, int32 priority) argument [all...] |
/haiku-fatelf/src/bin/network/atftpd/ |
H A D | logger.h | 22 void open_logger(char *ident, char *filename, int priority);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_attr_getschedparam/ |
H A D | 1-1.c | 31 int verify_param(pthread_attr_t *attr, int priority) { argument 40 if(priority != param.sched_priority) { 52 int priority; local 65 priority = sched_get_priority_max(FIFOPOLICY); 66 if(priority == -1) { 70 param.sched_priority = priority; 76 verify_param(&attr, priority); 83 priority = sched_get_priority_max(RRPOLICY); 84 if(priority == -1) { 88 param.sched_priority = priority; [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_unlock/ |
H A D | 3-1.c | 11 * on the lock, they shall acquire the lock in priority order when the lock 12 * becomes available. For equal priority threads, write locks shall take precedence 17 * main has the highest priority, writer1 and reader has same priority, writer2 has lowest 18 * priority. 20 * 1. Main thread set its shcedule policy as "SCHED_FIFO", with highest priority 23 * 3. Create a writer1 thread, with schedule policy as "SCHED_FIFO", and priority 25 * 4. Create reader thread, with same priority as writer1. The reader should also block. 26 * 5. Create a writer2 thread, with priority sched_get_priority_min(). It should block 81 int priority; local 85 set_priority(pthread_self(), TRD_POLICY, priority); local 117 int priority; local 121 set_priority(pthread_self(), TRD_POLICY, priority); local 155 int priority; local 159 set_priority(pthread_self(), TRD_POLICY, priority); local 198 int priority; local 202 set_priority(pthread_self(), TRD_POLICY, priority); local [all...] |
/haiku-fatelf/src/system/libroot/os/ |
H A D | scheduler.c | 18 int32 priority; member in struct:__anon5401 20 // highest priority first 41 int32 priority = what == B_DEFAULT_MEDIA_PRIORITY ? 0x0a : 0; local 42 // default priority 48 priority = sWhatPriorityArray[i].priority; 53 return priority;
|
/haiku-fatelf/src/system/kernel/scheduler/ |
H A D | scheduler_simple.cpp | 42 // The run queue. Holds the threads ready to run ordered by priority. 68 kprintf("thread id priority name\n"); 71 thread->id, thread->priority, thread->name); 90 && curr->priority >= thread->next_priority; 106 thread->next_priority = thread->priority; 112 if (thread->priority > thread_get_current_thread()->priority) { 119 /*! Sets the priority of a thread. 123 simple_set_thread_priority(Thread *thread, int32 priority) argument 125 if (priority 257 int32 priority = nextThread->priority; local [all...] |
H A D | scheduler_simple_smp.cpp | 43 // The run queue. Holds the threads ready to run ordered by priority. 71 kprintf("thread id priority name\n"); 74 thread->id, thread->priority, thread->name); 89 targetPriority = gCPU[targetCPU].running_thread->priority; 93 // Choose the CPU running the lowest priority thread. Favor the current CPU 100 targetPriority = gCPU[currentCPU].running_thread->priority; 108 int32 cpuPriority = gCPU[cpu].running_thread->priority; 133 && curr->priority >= thread->next_priority; 149 thread->next_priority = thread->priority; 151 if (thread->priority ! 188 set_thread_priority(Thread *thread, int32 priority) argument 345 int32 priority = nextThread->priority; local [all...] |
H A D | scheduler_affine.cpp | 40 // The run queues. Holds the threads ready to run ordered by priority. 115 kprintf("thread id priority avg. quantum name\n"); 118 " %s\n", thread, thread->id, thread->priority, 163 if (thread->priority == B_IDLE_PRIORITY) { 169 && curr->priority >= thread->next_priority; 188 thread->next_priority = thread->priority; 194 if (thread->priority > gCPU[targetCPU].running_thread->priority) { 248 || sRunQueue[i]->priority > sRunQueue[targetCPU]->priority 280 affine_set_thread_priority(Thread *thread, int32 priority) argument 409 int32 priority = nextThread->priority; local [all...] |
/haiku-fatelf/headers/build/os/app/ |
H A D | Looper.h | 19 int32 priority = B_NORMAL_PRIORITY,
|
/haiku-fatelf/headers/posix/ |
H A D | syslog.h | 61 /* turns a priority into a mask usable for setlogmask() */ 74 extern void syslog(int priority, const char *message, ...); 79 extern void log_team(int priority, const char *message, ...); 84 extern void log_thread(int priority, const char *message, ...); 88 extern void vsyslog(int priority, const char *message, va_list args);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_attr_setschedparam/speculative/ |
H A D | 3-1.c | 11 * 2. Set the policy and an invalid priority in that object 34 int priority; local 48 priority = sched_get_priority_max(policy); 49 if(priority == -1) { 54 param.sched_priority = priority + PRIORITY_OFFSET;
|
H A D | 3-2.c | 11 * 2. Set the policy and an invalid priority in that object 34 int priority; local 48 priority = sched_get_priority_max(policy); 49 if(priority == -1) { 54 param.sched_priority = priority + PRIORITY_OFFSET;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_getschedparam/ |
H A D | 1-2.c | 11 * policy and param, respectively. The priority value returned from 16 * its priority as a result of any priority inheritance or ceiling functions. 29 int policy, priority, policy_1; local 33 priority = sched_get_priority_min(policy); 34 sparam.sched_priority = priority; 48 //printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); 49 if (policy_1 != policy || sparam.sched_priority != priority)
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_rdlock/ |
H A D | 2-1.c | 13 * higher or equal priority are blocked on the lock; 16 * In this case, we test "higher priority writer block" 21 * 1. Main thread set its shcedule policy as "SCHED_FIFO", with highest priority 24 * 3. Create a writer thread, with schedule policy as "SCHED_FIFO", and priority 28 * priority sched_get_priority_min() 29 * 6. Reader thread read lock 'rwlock', should block, since there is a higher priority 80 int priority; local 83 priority = (long)arg; 84 set_priority(pthread_self(), TRD_POLICY, priority); local 113 int priority; local 117 set_priority(pthread_self(), TRD_POLICY, priority); local 151 int priority; local 155 set_priority(pthread_self(), TRD_POLICY, priority); local [all...] |
H A D | 2-2.c | 13 * higher or equal priority are blocked on the lock; 16 * In this case, we test "equal priority writer block" 21 * 1. Main thread set its shcedule policy as "SCHED_FIFO", with highest priority 24 * 3. Create a writer thread, with schedule policy as "SCHED_FIFO", and priority 28 * priority sched_get_priority_min()+1 29 * 6. Reader thread read lock 'rwlock', should block, since there is an equal priority 80 int priority; local 83 priority = (long)arg; 84 set_priority(pthread_self(), TRD_POLICY, priority); local 112 int priority; local 116 set_priority(pthread_self(), TRD_POLICY, priority); local 150 int priority; local 154 set_priority(pthread_self(), TRD_POLICY, priority); local [all...] |
H A D | 2-3.c | 13 * higher or equal priority are blocked on the lock; 16 * In this case, reader has higher priority than the writer 21 * 1. Main thread set its shcedule policy as "SCHED_FIFO", with highest priority 24 * 3. Create a writer thread, with schedule policy as "SCHED_FIFO", and priority 28 * priority sched_get_priority_min()+1 29 * 6. Reader thread read lock 'rwlock', shouldn't block, since it has a higher priority 80 int priority; local 83 priority = (int)(long)arg; 84 set_priority(pthread_self(), TRD_POLICY, priority); local 113 int priority; local 117 set_priority(pthread_self(), TRD_POLICY, priority); local 152 int priority; local 156 set_priority(pthread_self(), TRD_POLICY, priority); local [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_setschedparam/ |
H A D | 1-1.c | 19 int policy, priority, policy_1; local 23 priority = sched_get_priority_min(policy); 24 sparam.sched_priority = priority; 38 //printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); 39 if (policy_1 != policy || sparam.sched_priority != priority)
|
/haiku-fatelf/src/servers/registrar/ |
H A D | PriorityMessageQueue.h | 22 bool PushMessage(BMessage *message, int32 priority = 0); 29 int32 _FindInsertionIndex(int32 priority);
|
H A D | PriorityMessageQueue.cpp | 13 MessageInfo(BMessage *message, int32 priority) argument 15 fPriority(priority) 60 PriorityMessageQueue::PushMessage(BMessage *message, int32 priority) argument 66 if (MessageInfo *info = new MessageInfo(message, priority)) { 68 int32 index = _FindInsertionIndex(priority); 116 PriorityMessageQueue::_FindInsertionIndex(int32 priority) argument 123 if (info->Priority() >= priority)
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_setschedprio/ |
H A D | 1-1.c | 11 * policy and param, respectively. The priority value returned from 16 * its priority as a result of any priority inheritance or ceiling functions. 29 int policy, priority, policy_1; local 33 priority = sched_get_priority_min(policy); 34 sparam.sched_priority = priority; 48 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); 49 if (policy_1 != policy || sparam.sched_priority != priority) 55 rc = pthread_setschedprio(pthread_self(), priority + 1); 68 printf("policy: %d, priority [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | misc.cpp | 21 spawn_kernel_thread(thread_func func, const char *name, int32 priority, argument 24 return spawn_thread(func, name, priority, data);
|