#ifndef GPU_COMMAND_BUFFER_COMMON_THREAD_LOCAL_H_
#define GPU_COMMAND_BUFFER_COMMON_THREAD_LOCAL_H_
#if defined(_WIN32)
#include <windows.h>
#else
#include <pthread.h>
#endif
namespace gpu {
#if defined(_WIN32)
typedef DWORD ThreadLocalKey;
#else
ThreadLocalKey;
#endif
inline ThreadLocalKey ThreadLocalAlloc() { … }
inline void ThreadLocalFree(ThreadLocalKey key) { … }
inline void ThreadLocalSetValue(ThreadLocalKey key, void* value) { … }
inline void* ThreadLocalGetValue(ThreadLocalKey key) { … }
}
#endif