mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use native thread-locals when available and simulated thread-locals when not. The simulation layer uses pthread_getspecific. Using TLS is significantly more annoying this way, but I kindof like it because it reinforces that TLS accesses aren't as cheap as they look.
4.6 KiB
4.6 KiB