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:
Yonggang Luo 2022-06-14 01:55:16 +08:00 committed by Marge Bot
parent 0f3064ee44
commit be00a7c8ac
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ struct glx_context dummyContext = {
sizeof(dummyBuffer),
&dummyVtable
};
__thread void *__glX_tls_Context = &dummyContext;
thread_local void *__glX_tls_Context = &dummyContext;
#if !defined(USE_ELF_TLS)
extern "C" struct glx_context *