Home
last modified time | relevance | path

Searched refs:oldThread (Results 1 – 6 of 6) sorted by relevance

/haiku/src/system/kernel/scheduler/
H A Dscheduler.cpp329 Thread* oldThread = thread_get_current_thread(); in reschedule() local
330 ThreadData* oldThreadData = oldThread->scheduler_data; in reschedule()
340 oldThread->id); in reschedule()
342 oldThread->state = nextState; in reschedule()
360 if (oldThreadData->HasQuantumEnded(oldThread->cpu->preempted, in reschedule()
361 oldThread->has_yielded)) { in reschedule()
363 " %ld\n", oldThread->id, in reschedule()
368 " %ld\n", oldThread->id, in reschedule()
381 oldThread->id, nextState); in reschedule()
385 oldThread->has_yielded = false; in reschedule()
[all …]
H A Dscheduler_cpu.cpp218 CPUEntry::ChooseNextThread(ThreadData* oldThread, bool putAtBack) in ChooseNextThread() argument
223 if (oldThread != NULL) in ChooseNextThread()
224 oldPriority = oldThread->GetEffectivePriority(); in ChooseNextThread()
236 if (sharedThread == NULL && pinnedThread == NULL && oldThread == NULL) in ChooseNextThread()
245 return oldThread; in ChooseNextThread()
266 Thread* oldThread = oldThreadData->GetThread(); in TrackActivity() local
267 if (!thread_is_idle_thread(oldThread)) { in TrackActivity()
269 = (oldThread->kernel_time - cpuEntry->last_kernel_time) in TrackActivity()
270 + (oldThread->user_time - cpuEntry->last_user_time); in TrackActivity()
H A Dscheduler_cpu.h80 ThreadData* ChooseNextThread(ThreadData* oldThread,
/haiku/src/apps/debugger/user_interface/gui/team_window/
H A DThreadListView.cpp66 while (Thread* oldThread = fThreads.ItemAt(index)) { in Update() local
67 if (oldThread == newThread) { in Update()
68 if (threadID >= 0 && oldThread->ID() == threadID) in Update()
75 oldThread->ReleaseReference(); in Update()
/haiku/src/system/kernel/debug/
H A Dsystem_profiler.cpp78 virtual void ThreadScheduled(Thread* oldThread,
806 SystemProfiler::ThreadScheduled(Thread* oldThread, Thread* newThread) in ThreadScheduled() argument
814 if (oldThread->state == B_THREAD_WAITING) in ThreadScheduled()
815 _WaitObjectUsed((addr_t)oldThread->wait.object, oldThread->wait.type); in ThreadScheduled()
826 event->previous_thread = oldThread->id; in ThreadScheduled()
827 event->previous_thread_state = oldThread->state; in ThreadScheduled()
828 event->previous_thread_wait_object_type = oldThread->wait.type; in ThreadScheduled()
829 event->previous_thread_wait_object = (addr_t)oldThread->wait.object; in ThreadScheduled()
/haiku/headers/private/kernel/
H A Dlisteners.h30 virtual void ThreadScheduled(Thread* oldThread,