5#ifndef RUNTIME_VM_OS_THREAD_ANDROID_H_
6#define RUNTIME_VM_OS_THREAD_ANDROID_H_
8#if !defined(RUNTIME_VM_OS_THREAD_H_)
9#error Do not include os_thread_android.h directly; use os_thread.h instead.
24 static_cast<pthread_key_t
>(-1);
33 return reinterpret_cast<uword>(pthread_getspecific(
key));
47 pthread_mutex_t* mutex() {
return &mutex_; }
49 pthread_mutex_t mutex_;
62 pthread_mutex_t* mutex() {
return &mutex_; }
63 pthread_cond_t* cond() {
return &cond_; }
65 pthread_mutex_t mutex_;
pthread_key_t ThreadLocalKey
static const ThreadLocalKey kUnsetThreadLocalKey