Lines Matching defs:Thread
526 class Thread::PlatformData {
529 pthread_t thread_; // Thread handle for pthread.
534 Thread::Thread(const Options& options)
545 Thread::~Thread() {
554 STATIC_ASSERT(Thread::kMaxThreadNameLength <= PTHREAD_MAX_NAMELEN_NP);
567 STATIC_ASSERT(Thread::kMaxThreadNameLength <= kMaxNameLength);
578 Thread* thread = reinterpret_cast<Thread*>(arg);
590 void Thread::set_name(const char* name) {
596 void Thread::Start() {
628 void Thread::Join() {
633 static Thread::LocalStorageKey PthreadKeyToLocalKey(pthread_key_t pthread_key) {
635 // We need to cast pthread_key_t to Thread::LocalStorageKey in two steps
638 STATIC_ASSERT(sizeof(Thread::LocalStorageKey) == sizeof(pthread_key_t));
640 return static_cast<Thread::LocalStorageKey>(ptr_key);
642 return static_cast<Thread::LocalStorageKey>(pthread_key);
647 static pthread_key_t LocalKeyToPthreadKey(Thread::LocalStorageKey local_key) {
649 STATIC_ASSERT(sizeof(Thread::LocalStorageKey) == sizeof(pthread_key_t));
700 static void CheckFastTls(Thread::LocalStorageKey key) {
702 Thread::SetThreadLocal(key, expected);
703 void* actual = Thread::GetExistingThreadLocal(key);
708 Thread::SetThreadLocal(key, NULL);
714 Thread::LocalStorageKey Thread::CreateThreadLocalKey() {
735 void Thread::DeleteThreadLocalKey(LocalStorageKey key) {
743 void* Thread::GetThreadLocal(LocalStorageKey key) {
749 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {