AuroraRuntime/Include/Aurora/Threading/Threads/TLSStaticVariable.hpp

14 lines
350 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: TLSStaticVariable.hpp
Date: 2021-6-11
Author: Reece
***/
#pragma once
namespace Aurora::Threading::Threads
{
// TODO: #if defined(fibers) static TLSVariable<type, true> name #endif
#define STATIC_TLS(type, name) static thread_local type name;
}