[Threading] Fix the Linux build.

A few fixes specifically for the Linux build.

rdar://90776105
This commit is contained in:
Alastair Houghton
2022-04-21 15:03:58 +01:00
parent 2398fe76f6
commit fc90280e34
21 changed files with 69 additions and 20 deletions

View File

@@ -54,7 +54,7 @@ _swift_stdlib_threadLocalStorageGet(void) {
static swift::tls_key key;
static swift::once_t token;
swift::tls_alloc_once(token, key, [](void *)pointer {
swift::tls_alloc_once(token, key, [](void *pointer) {
_stdlib_destroyTLS(pointer);
});