Lines Matching defs:thread
110 Team::InitThread(Thread* thread)
112 // The thread
113 thread->SetLazyImages(!_SynchronousProfiling());
118 thread->ID());
124 "%s: Failed to create sample area for thread %" B_PRId32 ": "
125 "%s\n", kCommandName, thread->ID(), strerror(sampleArea));
129 thread->SetSampleArea(sampleArea, (addr_t*)samples);
131 // add the current images to the thread
134 status_t error = thread->AddImage(fImages.ItemAt(i));
140 // set thread debugging flags and start profiling
147 status_t error = set_thread_debugging_flags(fNubPort, thread->ID(),
155 message.thread = thread->ID();
167 "%s: Failed to start profiler for thread %" B_PRId32 ": %s\n",
168 kCommandName, thread->ID(), strerror(error));
172 thread->SetInterval(reply.interval);
174 fThreads.Add(thread);
176 // resume the target thread to be sure, it's running
177 resume_thread(thread->ID());
180 thread->SetInterval(gOptions.interval);
181 fThreads.Add(thread);
189 Team::RemoveThread(Thread* thread)
191 fThreads.Remove(thread);
208 // update the main thread
210 while (Thread* thread = it.Next()) {
211 if (thread->ID() == ID()) {
212 thread->UpdateInfo(threadName);
238 while (Thread* thread = it.Next())
239 thread->AddImage(image);
280 while (Thread* thread = it.Next())
281 thread->RemoveImage(image);