Lines Matching refs:state
160 ThreadState* state = new(std::nothrow) ThreadState;
161 if (state == NULL)
163 return state;
185 fState = fThread->state;
770 while (ThreadState* state = fThreadStates.RemoveHead())
771 delete state;
772 while (ThreadState* state = fPreAllocatedThreadStates.RemoveHead())
773 delete state;
810 // clean up the team state and wake up waiting threads
913 ThreadState* state = fPreAllocatedThreadStates.RemoveHead();
914 if (state != NULL) {
915 state->SetThread(thread);
916 fThreadStates.Insert(state);
939 ThreadState* state = ThreadState::Create();
940 if (state == NULL)
942 fPreAllocatedThreadStates.Insert(state);
953 ThreadState* state = it.Next();) {
954 if (state->IsComplete())
957 Thread* thread = state->GetThread();
964 delete state;
971 && thread->state == B_THREAD_RUNNING) {
976 state->GetState();
977 state->SetComplete(true);
983 // We still haven't got a state for all threads. Wait a moment and
1496 // thread count and size of CPU state
1503 ThreadState* state = it.Next();) {
1506 entry.nth_id = state->GetThread()->id;
1507 entry.nth_state = state->State();
1508 entry.nth_priority = state->Priority();
1509 entry.nth_stack_base = state->StackBase();
1510 entry.nth_stack_end = state->StackEnd();
1512 writer.Write(state->CpuState(), sizeof(debug_cpu_state));
1517 ThreadState* state = it.Next();) {
1518 const char* name = state->Name();