Registry in rustc_data_structures::sync - Rust (original) (raw)
pub struct Registry(Arc<RegistryData>);Expand description
Represents a list of threads which can access worker locals.
Creates a registry which can hold up to thread_limit threads.
Gets the registry associated with the current thread. Panics if there’s no such registry.
Registers the current thread with the registry so worker locals can be used on it. Panics if the thread limit is hit or if the thread already has an associated registry.
Gets the identifier of this registry.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes