/haiku-fatelf/src/bin/ |
H A D | renice.c | 9 * Used the code to rewrite the 'prio' BeOS command for OpenBeOS. 37 prio is locked into one pid, then the priority. 51 static int32 prio_be_to_unix(int32 prio) argument 53 if (prio > BZERO) 54 return NZERO - ((prio - BZERO) * NZERO) / (BMIN - BZERO); 55 return NZERO + ((BZERO - prio) * (NZERO - 1)) / (BZERO - BMAX); 59 static int32 prio_unix_to_be(int32 prio) argument 61 if (prio > NZERO) 62 return BZERO - ((prio - NZERO) * (BZERO - BMAX)) / (NZERO-1); 63 return BZERO + ((NZERO - prio) * (BMI 66 renice_thread(int32 prio, int32 increment, bool use_be_prio, thread_id th) argument 85 int32 prio, increment = 0; local [all...] |
H A D | prio.c | 0 /* prio.c - prio command for BeOs, change priority of a given thread 9 * Initial. Used my renice.c code to rewrite 'prio' BeOS command for OpenBeOS. 11 * prio is a stripped-down version of renice 22 int32 prio; local 26 puts("Usage: prio pid newpriority"); 31 prio = atoi(argv[2]); 34 ret = set_thread_priority(th, prio);
|
/haiku-fatelf/src/libs/compat/freebsd_network/compat/sys/ |
H A D | taskqueue.h | 15 #define TASK_INIT(taskp, prio, hand, arg) task_init(taskp, prio, hand, arg) 41 void task_init(struct task *, int prio, task_handler_t handler, void *arg);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_getschedparam/ |
H A D | stress.c | 100 int prio; member in struct:_tdata 133 if ( sp.sched_priority != td[ i ].prio ) 218 td[ 0 ].prio = sched_get_priority_min( SCHED_FIFO ); 220 if ( td[ 0 ].prio == -1 ) 225 td[ 1 ].prio = sched_get_priority_max( SCHED_FIFO ); 227 if ( td[ 1 ].prio == -1 ) 232 td[ 2 ].prio = sched_get_priority_min( SCHED_RR ); 234 if ( td[ 2 ].prio == -1 ) 239 td[ 3 ].prio = sched_get_priority_max( SCHED_RR ); 241 if ( td[ 3 ].prio [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/threads/include/ |
H A D | pitest.h | 25 int test_set_priority(pthread_t pid, unsigned policy, unsigned prio) argument 29 sched_param.sched_priority = prio; 32 EPRINTF("UNRESOLVED: Can't set policy to %d and prio to %d", 33 policy, prio);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_notify/ |
H A D | 1-1.c | 59 unsigned int prio = 1; local 79 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
|
H A D | 3-1.c | 58 unsigned int prio = 1; local 81 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
|
H A D | 4-1.c | 55 unsigned int prio = 1; local 75 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
|
H A D | 5-1.c | 67 unsigned int prio = 1; local 106 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_receive/ |
H A D | 12-1.c | 37 int prio = 1; local 52 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
|
H A D | 2-1.c | 36 int prio = 1; local 51 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
|
H A D | 5-1.c | 45 int prio = 1; local 98 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) == -1) {
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_timedreceive/ |
H A D | 15-1.c | 38 int prio = 1; local 54 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
|
H A D | 2-1.c | 37 int prio = 1; local 53 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
|
H A D | 5-1.c | 44 int prio = 1; local 101 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) == -1) {
|
/haiku-fatelf/src/apps/processcontroller/ |
H A D | ThreadBarMenu.cpp | 121 PriorityMenu* prio = new PriorityMenu(info.thread, info.priority); local 122 prio->SetFont(be_plain_font); 123 ThreadBarMenuItem* threadbarmenuitem = new ThreadBarMenuItem(info.name, info.thread, prio, kill_thread);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_rdlock/ |
H A D | 2-1.c | 63 static int set_priority(pthread_t pid, unsigned policy, unsigned prio) argument 67 sched_param.sched_priority = prio; 70 printf("Can't set policy to %d and prio to %d\n", 71 policy, prio);
|
H A D | 2-2.c | 63 static int set_priority(pthread_t pid, unsigned policy, unsigned prio) argument 67 sched_param.sched_priority = prio; 70 printf("Can't set policy to %d and prio to %d\n", 71 policy, prio);
|
H A D | 2-3.c | 63 static int set_priority(pthread_t pid, unsigned policy, unsigned prio) argument 67 sched_param.sched_priority = prio; 70 printf("Can't set policy to %d and prio to %d\n", 71 policy, prio);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_unlock/ |
H A D | 3-1.c | 64 static int set_priority(pthread_t pid, unsigned policy, unsigned prio) argument 68 sched_param.sched_priority = prio; 71 printf("Can't set policy to %d and prio to %d\n", 72 policy, prio);
|
/haiku-fatelf/3rdparty/mmu_man/scripts/ |
H A D | dev-perso | 137 prio $$ 1 204 prio $$ 1
|
/haiku-fatelf/src/libs/util/ |
H A D | login_class.c | 339 rtp.prio = p - PRIO_MAX - 1; 340 p = (rtp.prio > RTP_PRIO_MAX) ? 31 : p; 346 rtp.prio = abs(p - PRIO_MIN + RTP_PRIO_MAX); 347 p = (rtp.prio > RTP_PRIO_MAX) ? 1 : p;
|
/haiku-fatelf/src/libs/compat/freebsd_network/ |
H A D | taskqueue.c | 299 task_init(struct task *task, int prio, task_handler_t handler, void *context) argument 301 task->ta_priority = prio;
|
/haiku-fatelf/src/system/kernel/ |
H A D | thread.cpp | 1433 int32 prio; 1440 prio = strtoul(argv[1], NULL, 0); 1441 if (prio > THREAD_MAX_SET_PRIORITY) 1442 prio = THREAD_MAX_SET_PRIORITY; 1443 if (prio < THREAD_MIN_SET_PRIORITY) 1444 prio = THREAD_MIN_SET_PRIORITY; 1456 thread->priority = thread->next_priority = prio; 1457 kprintf("thread %" B_PRId32 " set to priority %" B_PRId32 "\n", id, prio);
|
/haiku-fatelf/src/add-ons/input_server/methods/canna/rk/ |
H A D | nword.c | 1116 long prio; member in struct:compRec 1129 long dd = x->prio - y->prio; 1164 wptr[p].prio = p;
|