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.

Source§

Source

Creates a registry which can hold up to thread_limit threads.

Source

Gets the registry associated with the current thread. Panics if there’s no such registry.

Source

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.

Source

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