diff options
author | Tim Rowley <[email protected]> | 2017-03-22 18:55:13 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-03-28 11:24:39 -0500 |
commit | 1c7224c85fddcbac64ee5a6595ec8608b4f00437 (patch) | |
tree | 17f252f37ff850064e760cbdb0f6c4b1f077ac3b /src/gallium/drivers/swr/rasterizer | |
parent | aee5276375d79f5d73680d6038a1fd838894679a (diff) |
swr: [rasterizer common] Use C++ thread_local keyword
Allows use of thread_local objects with constructors.
Reviewed-by: George Kyriazis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/common/os.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h index 28e7ff54f96..71c4da3a59a 100644 --- a/src/gallium/drivers/swr/rasterizer/common/os.h +++ b/src/gallium/drivers/swr/rasterizer/common/os.h @@ -47,7 +47,6 @@ #endif #define OSALIGN(RWORD, WIDTH) __declspec(align(WIDTH)) RWORD -#define THREAD __declspec(thread) #define INLINE __forceinline #define DEBUGBREAK __debugbreak() @@ -108,7 +107,6 @@ typedef unsigned int DWORD; #define MAX_PATH PATH_MAX #define OSALIGN(RWORD, WIDTH) RWORD __attribute__((aligned(WIDTH))) -#define THREAD __thread #ifndef INLINE #define INLINE __inline #endif @@ -242,6 +240,8 @@ pid_t gettid(void); #endif +#define THREAD thread_local + // Universal types typedef uint8_t KILOBYTE[1024]; typedef KILOBYTE MEGABYTE[1024]; |