Lines Matching refs:thread
26 #include <thread.h>
171 void SetThread(Thread* thread)
176 fThread = thread;
182 /*! Invoke with thread lock and scheduler lock being held. */
831 // pre-allocate a list of thread states
880 for (Thread* thread = fTeam->thread_list; thread != NULL;
881 thread = thread->team_next) {
884 atomic_or(&thread->flags, THREAD_FLAGS_TRAP_FOR_CORE_DUMP);
886 atomic_and(&thread->flags,
910 for (Thread* thread = fTeam->thread_list; thread != NULL;
911 thread = thread->team_next) {
915 state->SetThread(thread);
957 Thread* thread = state->GetThread();
958 AutoLocker<Thread> threadLocker(thread);
959 if (thread->team != fTeam) {
969 InterruptsSpinLocker schedulerLocker(&thread->scheduler_lock);
970 if (thread != fCurrentThread
971 && thread->state == B_THREAD_RUNNING) {
1496 // thread count and size of CPU state
1612 Thread* thread = thread_get_current_thread();
1614 TeamLocker teamLocker(thread->team);
1616 while ((atomic_get(&thread->flags) & THREAD_FLAGS_TRAP_FOR_CORE_DUMP)
1618 thread->team->CoreDumpCondition()->Add(&conditionVariableEntry);