chromium/gpu/command_buffer/common/thread_local.h

// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Functions for allocating and accessing thread local values via key.

#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) {}
}  // namespace gpu

#endif  // GPU_COMMAND_BUFFER_COMMON_THREAD_LOCAL_H_