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>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* 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;
|
||||
Reference in New Issue
Block a user