mesa/src/c11/impl/threads_win32_tls_callback.cpp
Yonggang Luo 125a952b66 c11: call impl_tss_dtor_invoke with tls callback for win32
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/17071>
2022-08-10 20:14:15 +00:00

18 lines
275 B
C++

/*
* Copyright 2022 Yonggang Luo
* SPDX-License-Identifier: MIT
*/
#include "threads_win32.h"
struct tls_callback
{
tls_callback()
{
}
~tls_callback()
{
__threads_win32_tls_callback();
}
};
static thread_local tls_callback tls_callback_instance;