Module key

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (thread_local_internals)
Expand description

const-creatable TLS keys.

Most OSs without native TLS will provide a library-based way to create TLS storage. For each TLS variable, we create a key, which can then be used to reference an entry in a thread-local table. This then associates each key with a pointer which we can get and set to store our data.

Modulesยง

racy ๐Ÿ”’ Experimental
A LazyKey implementation using racy initialization.
unix ๐Ÿ”’ Experimental