glx: using C++11 keyword thread_local
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15087>
This commit is contained in:
@@ -98,7 +98,7 @@ struct glx_context dummyContext = {
|
|||||||
sizeof(dummyBuffer),
|
sizeof(dummyBuffer),
|
||||||
&dummyVtable
|
&dummyVtable
|
||||||
};
|
};
|
||||||
__thread void *__glX_tls_Context = &dummyContext;
|
thread_local void *__glX_tls_Context = &dummyContext;
|
||||||
|
|
||||||
#if !defined(USE_ELF_TLS)
|
#if !defined(USE_ELF_TLS)
|
||||||
extern "C" struct glx_context *
|
extern "C" struct glx_context *
|
||||||
|
|||||||
Reference in New Issue
Block a user