5#ifndef RUNTIME_VM_OS_THREAD_FUCHSIA_H_
6#define RUNTIME_VM_OS_THREAD_FUCHSIA_H_
8#if !defined(RUNTIME_VM_OS_THREAD_H_)
9#error Do not include os_thread_fuchsia.h directly; use os_thread.h instead.
13#include <zircon/syscalls/object.h>
25 static_cast<pthread_key_t
>(-1);
34 return reinterpret_cast<uword>(pthread_getspecific(
key));
48 pthread_mutex_t* mutex() {
return &mutex_; }
50 pthread_mutex_t mutex_;
63 pthread_mutex_t* mutex() {
return &mutex_; }
64 pthread_cond_t* cond() {
return &cond_; }
66 pthread_mutex_t mutex_;
pthread_key_t ThreadLocalKey
static const ThreadLocalKey kUnsetThreadLocalKey