Lines Matching defs:thread
105 while (Thread* thread = fThreads.RemoveHead())
106 thread->ReleaseReference();
128 Team::AddThread(Thread* thread)
130 fThreads.Add(thread);
131 _NotifyThreadAdded(thread);
139 Thread* thread = new(std::nothrow) Thread(this, threadInfo.ThreadID());
140 if (thread == NULL)
143 status_t error = thread->Init();
145 delete thread;
149 thread->SetName(threadInfo.Name());
150 AddThread(thread);
153 *_thread = thread;
160 Team::RemoveThread(Thread* thread)
162 fThreads.Remove(thread);
163 _NotifyThreadRemoved(thread);
170 Thread* thread = ThreadByID(threadID);
171 if (thread == NULL)
174 RemoveThread(thread);
175 thread->ReleaseReference();
184 Thread* thread = it.Next();) {
185 if (thread->ID() == threadID)
186 return thread;
693 Team::NotifyThreadStateChanged(Thread* thread)
698 ThreadEvent(TEAM_EVENT_THREAD_STATE_CHANGED, thread));
704 Team::NotifyThreadCpuStateChanged(Thread* thread)
709 ThreadEvent(TEAM_EVENT_THREAD_CPU_STATE_CHANGED, thread));
715 Team::NotifyThreadStackTraceChanged(Thread* thread)
720 ThreadEvent(TEAM_EVENT_THREAD_STACK_TRACE_CHANGED, thread));
888 Team::_NotifyThreadAdded(Thread* thread)
892 listener->ThreadAdded(ThreadEvent(TEAM_EVENT_THREAD_ADDED, thread));
898 Team::_NotifyThreadRemoved(Thread* thread)
902 listener->ThreadRemoved(ThreadEvent(TEAM_EVENT_THREAD_REMOVED, thread));
941 Team::ThreadEvent::ThreadEvent(uint32 type, Thread* thread)
943 Event(type, thread->GetTeam()),
944 fThread(thread)