Searched refs:prio (Results 1 - 25 of 25) sorted by relevance

/haiku-fatelf/src/bin/
H A Drenice.c9 * 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 Dprio.c0 /* 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 Dtaskqueue.h15 #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 Dstress.c100 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 Dpitest.h25 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 D1-1.c59 unsigned int prio = 1; local
79 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
H A D3-1.c58 unsigned int prio = 1; local
81 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
H A D4-1.c55 unsigned int prio = 1; local
75 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
H A D5-1.c67 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 D12-1.c37 int prio = 1; local
52 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
H A D2-1.c36 int prio = 1; local
51 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
H A D5-1.c45 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 D15-1.c38 int prio = 1; local
54 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
H A D2-1.c37 int prio = 1; local
53 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
H A D5-1.c44 int prio = 1; local
101 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) == -1) {
/haiku-fatelf/src/apps/processcontroller/
H A DThreadBarMenu.cpp121 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 D2-1.c63 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 D2-2.c63 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 D2-3.c63 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 D3-1.c64 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 Ddev-perso137 prio $$ 1
204 prio $$ 1
/haiku-fatelf/src/libs/util/
H A Dlogin_class.c339 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 Dtaskqueue.c299 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 Dthread.cpp1433 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 Dnword.c1116 long prio; member in struct:compRec
1129 long dd = x->prio - y->prio;
1164 wptr[p].prio = p;

Completed in 169 milliseconds