mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency] Use pthread_specific for thread-local storage on Darwin.
The pthread_specific APIs are better than C++ thread_local storage on Darwin since we can use Swift's reserved pthread keys there. rdar://79504652
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
#include <cstring>
|
||||
|
||||
#include "../SwiftShims/ThreadLocalStorage.h"
|
||||
#include "../runtime/ThreadLocalStorage.h"
|
||||
#include "swift/Basic/Lazy.h"
|
||||
#include "swift/Runtime/Debug.h"
|
||||
#include "swift/Runtime/ThreadLocalStorage.h"
|
||||
|
||||
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
|
||||
void _stdlib_destroyTLS(void *);
|
||||
|
||||
Reference in New Issue
Block a user