/haiku/src/system/libroot/posix/unistd/ |
H A D | nice.c | 24 int priority = incr; local 27 if (priority > -(2 * NZERO - 1) && priority < (2 * NZERO - 1)) 28 priority += getpriority(PRIO_PROCESS, 0); 30 priority = MAX(priority, -NZERO); 31 priority = MIN(priority, NZERO - 1); 33 return setpriority(PRIO_PROCESS, 0, priority) != -1 ? priority [all...] |
/haiku/src/apps/processcontroller/ |
H A D | PriorityMenu.cpp | 19 PriorityMenu::PriorityMenu(thread_id thread, int32 priority) argument 22 fPriority(priority) 28 PriorityMenu::Update(int32 priority) argument 30 if (priority != fPriority && CountItems() > 0) 35 fPriority = priority; 41 long priority; member in struct:__anon3 45 { B_TRANSLATE("Idle priority"), 0 }, 46 { B_TRANSLATE("Lowest active priority"), 1 }, 47 { B_TRANSLATE("Low priority"), 5 }, 48 { B_TRANSLATE("Normal priority"), 1 68 PriorityRec *priority = &priorities[index]; local [all...] |
H A D | PriorityMenu.h | 13 PriorityMenu (thread_id thread, int32 priority); 15 void Update (int32 priority);
|
/haiku/src/build/libbe/app/ |
H A D | Looper.cpp | 10 BLooper::BLooper(const char* name, int32 priority, int32 port_capacity) argument
|
/haiku/src/kits/shared/ |
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/src/system/kernel/scheduler/ |
H A D | RunQueue.h | 90 inline void PushFront(Element* element, unsigned int priority); 91 inline void PushBack(Element* elementt, unsigned int priority); 95 inline Element* GetHead(unsigned int priority) const; 262 unsigned int priority = PriorityHeap::GetKey(maxPriority); local 264 ASSERT(priority <= MaxPriority); 265 ASSERT(fHeads[priority] != NULL); 267 Element* element = fHeads[priority]; 269 ASSERT(sGetLink(element)->fPriority == priority); local 270 ASSERT(fTails[priority] != NULL); 280 unsigned int priority) 279 PushFront(Element* element, unsigned int priority) argument 308 PushBack(Element* element, unsigned int priority) argument 342 unsigned int priority = elementLink->fPriority; local [all...] |
H A D | scheduler_thread.cpp | 132 int32 priority = GetPriority() - _GetPenalty(); local 133 priority = std::max(priority, int32(1)); 135 fAdditionalPenalty % priority, fAdditionalPenalty); 222 for (int32 priority = 0; priority <= THREAD_MAX_SET_PRIORITY; priority++) { 224 if (priority >= B_URGENT_DISPLAY_PRIORITY) { 225 sQuantumLengths[priority] = kQuantum0; 231 if (priority > B_NORMAL_PRIORIT 302 _ScaleQuantum(bigtime_t maxQuantum, bigtime_t minQuantum, int32 maxPriority, int32 minPriority, int32 priority) argument [all...] |
/haiku/headers/build/os/app/ |
H A D | Looper.h | 19 int32 priority = B_NORMAL_PRIORITY,
|
/haiku/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/src/system/libroot/os/ |
H A D | scheduler.c | 18 int32 priority; member in struct:__anon1996 20 // highest priority first 44 int32 priority = what == B_DEFAULT_MEDIA_PRIORITY ? 0x0a : 0; local 45 // default priority 51 priority = sWhatPriorityArray[i].priority; 56 return priority;
|
/haiku/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);
|
H A D | low_resource_manager.cpp | 29 uint32 resources, int32 priority) 28 register_low_resource_handler(low_resource_func function, void *data, uint32 resources, int32 priority) argument
|
/haiku/src/servers/registrar/mime/ |
H A D | CreateAppMetaMimeThread.cpp | 21 int32 priority, Database* database, 26 MimeUpdateThread(name, priority, database, managerMessenger, root, 20 CreateAppMetaMimeThread(const char* name, int32 priority, Database* database, MimeEntryProcessor::DatabaseLocker* databaseLocker, BMessenger managerMessenger, const entry_ref* root, bool recursive, int32 force, BMessage* replyee) argument
|
H A D | UpdateMimeInfoThread.cpp | 26 UpdateMimeInfoThread::UpdateMimeInfoThread(const char* name, int32 priority, argument 31 MimeUpdateThread(name, priority, database, managerMessenger, root,
|
/haiku/headers/os/drivers/ |
H A D | dpc.h | 23 status_t (*new_dpc_queue)(void **queue, const char *name, int32 priority);
|
/haiku/src/tests/system/kernel/unit/ |
H A D | TestThread.h | 27 thread_id Spawn(const char* name, int32 priority) argument 29 return GlobalTestContext::Current()->SpawnThread(_Entry, name, priority, 54 int32 priority, ParameterType* arg) 62 return thread->Spawn(name, priority); 52 SpawnThread(ObjectType* object, void (ObjectType::*method)(TestContext&, ParameterType*), const char* name, int32 priority, ParameterType* arg) argument
|
/haiku/src/libs/compat/freebsd_network/ |
H A D | eventhandler.c | 17 const char *name, void *func, void *arg, int priority) 16 eventhandler_register(struct eventhandler_list *list, const char *name, void *func, void *arg, int priority) argument
|
/haiku/headers/posix/ |
H A D | syslog.h | 64 #define LOG_PRIMASK (0x7) /* mask to extract priority part */ 67 /* turns a priority into a mask usable for setlogmask() */ 80 extern void syslog(int priority, const char *message, ...); 85 extern void log_team(int priority, const char *message, ...); 90 extern void log_thread(int priority, const char *message, ...); 94 extern void vsyslog(int priority, const char *message, va_list args);
|
/haiku/headers/private/kernel/arch/riscv64/ |
H A D | Plic.h | 16 uint32 priority[1024]; // 0x000000 member in struct:PlicRegs
|
/haiku/src/kits/storage/sniffer/ |
H A D | Rule.cpp | 36 //! Returns the priority of the rule. 0.0 <= priority <= 1.0. 97 Rule::SetTo(double priority, std::vector<DisjList*>* list) { argument 99 if (0.0 <= priority && priority <= 1.0) 100 fPriority = priority; 102 throw new Err("Sniffer pattern error: invalid priority", -1);
|
/haiku/src/bin/ |
H A D | logger.cpp | 99 char *priority = strchr(option, '.'); local 100 if (priority == NULL) { 105 return lookup_mapping(sPriorities, ++priority); 112 fprintf(stderr, "usage: %s [-i] [-t <tag>] [-p <[facility.]priority>] " 118 " -p\tSets the facility and priority this is logged under.\n" 122 " \t<priority> can be one of:\n" 136 int priority = DEFAULT_PRIORITY; local 152 case 'p': // facility/priority 154 priority = get_priority(optarg); 198 syslog(priority, " [all...] |
/haiku/headers/private/shared/ |
H A D | Thread.h | 52 SimpleThread(int32 priority = B_LOW_PRIORITY, const char* name = 0); 71 int32 priority = B_LOW_PRIORITY, const char* name = 0); 74 Thread(FunctionObject*, int32 priority, const char* name); 85 int32 priority = B_LOW_PRIORITY); 88 ThreadSequence(BObjectList<FunctionObject>*, int32 priority); 224 LaunchInNewThread(const char* name, int32 priority, status_t (*func)(Param1), argument 228 priority, name); 234 LaunchInNewThread(const char* name, int32 priority, status_t (T::*function)(), argument 238 onThis), priority, name); 244 LaunchInNewThread(const char* name, int32 priority, argument 256 LaunchInNewThread(const char* name, int32 priority, status_t (*func)(Param1, Param2, Param3), Param1 p1, Param2 p2, Param3 p3) argument 267 LaunchInNewThread(const char* name, int32 priority, status_t (*func)(Param1, Param2, Param3, Param4), Param1 p1, Param2 p2, Param3 p3, Param4 p4) argument [all...] |
/haiku/src/system/libroot/posix/ |
H A D | syslog.cpp | 126 daemon, if the priority mask matches. 131 send_syslog_message(syslog_context *context, int priority, const char *text, argument 137 if ((context->mask & LOG_MASK(SYSLOG_PRIORITY(priority))) == 0) 152 if (SYSLOG_FACILITY(priority) == 0) 153 priority |= context->facility; 161 message.priority = priority; 213 syslog(int priority, const char *message, ...) argument 218 send_syslog_message(get_context(), priority, message, args); local 258 log_team(int priority, cons argument 306 log_thread(int priority, const char *message, ...) argument 311 send_syslog_message(get_context(), priority, message, args); local 320 vsyslog(int priority, const char *message, va_list args) argument 322 send_syslog_message(get_context(), priority, message, args); local [all...] |
/haiku/headers/os/package/ |
H A D | RepositoryConfig.h | 20 const BString& url, uint8 priority); 42 void SetPriority(uint8 priority);
|