5#ifndef RUNTIME_VM_OS_THREAD_ABSL_H_
6#define RUNTIME_VM_OS_THREAD_ABSL_H_
8#if !defined(RUNTIME_VM_OS_THREAD_H_)
9#error Do not include os_thread_absl.h directly; use os_thread.h instead.
16#include "third_party/absl/synchronization/mutex.h"
25 static_cast<pthread_key_t
>(-1);
34 return reinterpret_cast<uword>(pthread_getspecific(
key));
48 absl::Mutex* mutex() {
return &mutex_; }
63 absl::Mutex* mutex() {
return &mutex_; }
64 absl::CondVar* cond() {
return &cond_; }
pthread_key_t ThreadLocalKey
static const ThreadLocalKey kUnsetThreadLocalKey