Module std::sync::once [] [src]

A "once initialization" primitive

This primitive is meant to be used to run one-time initialization. An example use case would be for initializing an FFI library.

Reexports

use core::prelude::v1::*;
use isize;
use sync::atomic::{AtomicIsize, Ordering};
use sync::StaticMutex;

Structs

Once

A synchronization primitive which can be used to run a one-time global initialization. Useful for one-time initialization for FFI or related functionality. This type can only be constructed with the ONCE_INIT value.

Constants

ONCE_INIT

Initialization value for static Once values.