mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
swr: [rasterizer common] Use C++ thread_local keyword
Allows use of thread_local objects with constructors. Reviewed-by: George Kyriazis <george.kyriazis@intel.com>
This commit is contained in:
parent
aee5276375
commit
1c7224c85f
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue