Lines Matching refs:thread

284 Model::Team::AddThread(Thread* thread)
286 return fThreads.BinaryInsert(thread, &Thread::CompareByCreationTimeID);
454 // create a thread wait object
460 // find the thread wait object group
557 Model::SchedulingState::DeleteThread(ThreadSchedulingState* thread)
559 delete thread;
577 Thread* thread = threadState->thread;
578 if (thread->CreationTime() <= lastEventTime
579 && (thread->DeletionTime() == -1
580 || thread->DeletionTime() >= lastEventTime)) {
600 Thread* thread = threadState->thread;
601 if (thread->CreationTime() <= lastEventTime
602 && (thread->DeletionTime() == -1
603 || thread->DeletionTime() >= lastEventTime)) {
721 // set the thread indices
722 for (int32 i = 0; Thread* thread = fThreads.ItemAt(i); i++)
723 thread->SetIndex(i);
833 // check whether we do already know the thread
834 Thread* thread = ThreadByID(event->thread);
835 if (thread != NULL) {
836 fprintf(stderr, "Duplicate thread: %" B_PRId32 "\n", event->thread);
838 return thread;
844 fprintf(stderr, "No team for thread: %" B_PRId32 "\n", event->thread);
848 // create the thread and add it
849 thread = new(std::nothrow) Thread(team, event, time);
850 if (thread == NULL)
852 ObjectDeleter<Thread> threadDeleter(thread);
854 if (!fThreads.BinaryInsert(thread, &Thread::CompareByID))
857 if (!team->AddThread(thread)) {
858 fThreads.RemoveItem(thread);
863 return thread;
935 Thread* thread = ThreadByID(threadID);
936 if (thread == NULL)
939 return thread->AddThreadWaitObject(waitObject, _threadWaitObjectGroup);
946 Thread* thread = ThreadByID(threadID);
947 if (thread == NULL)
950 return thread->ThreadWaitObjectGroupFor(type, object);