Lines Matching defs:slot
245 // thread exits and return the table slot.
251 int slot;
296 return data->slot;
303 int slot = 0;
308 // so that two threads don't grab the same slot. Fortunately,
312 slot = FindEmptyThread();
313 if (!slot) {
321 strlcpy(impl_->thread_name(slot), thread_name.c_str(),
323 *(impl_->thread_tid(slot)) = PlatformThread::CurrentId();
324 *(impl_->thread_pid(slot)) = GetCurrentProcId();
330 data->slot = slot;
332 return slot;
439 // Get the slot for this thread. Try to register
441 int slot = table->GetSlot();
442 if (!slot && !(slot = table->RegisterThread("")))
450 return table->GetLocation(counter, slot);
462 // Mark the slot free by zeroing out the thread name.
463 char* name = impl_->thread_name(data->slot);
466 // Remove the calling thread's TLS so that it cannot use the slot.
487 // The reason for doing this is because the thread 'slot' is stored
489 // returned as a valid slot number, it would be confused with the
520 free_slot = index; // save that we found a free slot
568 DCHECK(data->slot);