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

14 lines
350 B
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
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
{
2021-06-30 09:28:52 +00:00
// TODO: #if defined(fibers) static TLSVariable<type, true> name #endif
#define STATIC_TLS(type, name) static thread_local type name;
2021-06-27 21:25:29 +00:00
}