Home
last modified time | relevance | path

Searched refs:threadData (Results 1 – 7 of 7) sorted by relevance

/haiku/src/system/kernel/scheduler/
H A Dlow_latency.cpp35 has_cache_expired(const ThreadData* threadData) in has_cache_expired() argument
38 if (threadData->WentSleepActive() == 0) in has_cache_expired()
40 CoreEntry* core = threadData->Core(); in has_cache_expired()
42 return activeTime - threadData->WentSleepActive() > kCacheExpire; in has_cache_expired()
47 choose_core(const ThreadData* threadData) in choose_core() argument
59 CPUSet mask = threadData->GetCPUMask(); in choose_core()
89 rebalance(const ThreadData* threadData) in rebalance() argument
93 CoreEntry* core = threadData->Core(); in rebalance()
98 CPUSet mask = threadData->GetCPUMask(); in rebalance()
130 int32 threadLoad = threadData->GetLoad() / core->CPUCount(); in rebalance()
H A Dpower_saving.cpp41 has_cache_expired(const ThreadData* threadData) in has_cache_expired() argument
44 if (threadData->WentSleep() == 0) in has_cache_expired()
46 return system_time() - threadData->WentSleep() > kCacheExpire; in has_cache_expired()
85 choose_core(const ThreadData* threadData) in choose_core() argument
91 CPUSet mask = threadData->GetCPUMask(); in choose_core()
99 if (core == NULL || core->GetLoad() + threadData->GetLoad() >= kHighLoad) { in choose_core()
130 rebalance(const ThreadData* threadData) in rebalance() argument
136 CPUSet mask = threadData->GetCPUMask(); in rebalance()
139 CoreEntry* core = threadData->Core(); in rebalance()
142 int32 threadLoad = threadData->GetLoad() / core->CPUCount(); in rebalance()
H A Dscheduler.cpp100 ThreadData* threadData = thread->scheduler_data; in enqueue() local
102 int32 threadPriority = threadData->GetEffectivePriority(); in enqueue()
109 ASSERT(threadData->Core() != NULL); in enqueue()
113 } else if (threadData->Core() != NULL in enqueue()
114 && (!newOne || !threadData->HasCacheExpired())) { in enqueue()
115 targetCore = threadData->Rebalance(); in enqueue()
118 const bool rescheduleNeeded = threadData->ChooseCoreAndCPU(targetCore, targetCPU); in enqueue()
124 threadData->Enqueue(wasRunQueueEmpty); in enqueue()
159 ThreadData* threadData = thread->scheduler_data; in scheduler_enqueue_in_run_queue() local
161 if (threadData->ShouldCancelPenalty()) in scheduler_enqueue_in_run_queue()
[all …]
H A Dscheduler_modes.h25 const Scheduler::ThreadData* threadData);
27 const Scheduler::ThreadData* threadData);
29 const Scheduler::ThreadData* threadData);
H A Dscheduler_cpu.cpp68 ThreadData* threadData = iterator.Next(); in Dump() local
69 Thread* thread = threadData->GetThread(); in Dump()
73 thread->priority - threadData->GetEffectivePriority(), in Dump()
320 CPUEntry::_RequestPerformanceLevel(ThreadData* threadData) in _RequestPerformanceLevel() argument
329 int32 load = std::max(threadData->GetLoad(), fCore->GetLoad()); in _RequestPerformanceLevel()
332 threadData->GetLoad(), fCore->GetLoad()); in _RequestPerformanceLevel()
514 ThreadData* threadData = fRunQueue.PeekMaximum(); in RemoveCPU() local
516 Remove(threadData); in RemoveCPU()
518 ASSERT(threadData->Core() == NULL); in RemoveCPU()
519 threadPostProcessing(threadData); in RemoveCPU()
[all …]
H A Dscheduler_cpu.h93 ThreadData* threadData);
/haiku/src/apps/haikudepot/ui/
H A DUserLoginWindow.cpp496 AuthenticateSetupThreadData* threadData = new AuthenticateSetupThreadData(); in _Authenticate() local
498 threadData->window = this; in _Authenticate()
499 threadData->credentials = new UserCredentials(credentials); in _Authenticate()
502 "Authentication", B_NORMAL_PRIORITY, threadData); in _Authenticate()
511 AuthenticateSetupThreadData* threadData in _AuthenticateThreadEntry() local
513 threadData->window->_AuthenticateThread(*(threadData->credentials)); in _AuthenticateThreadEntry()
514 threadData->window->_SetWorkerThreadLocked(-1); in _AuthenticateThreadEntry()
515 delete threadData->credentials; in _AuthenticateThreadEntry()
516 delete threadData; in _AuthenticateThreadEntry()
723 CreateAccountSetupThreadData* threadData = new CreateAccountSetupThreadData; in _CreateAccountSetup() local
[all …]