Crate singleton [] [src]

Macros

make_preemptive_singleton

Create an uninitialized preemptive singleton.

make_singleton

Create an uninitialized singleton.

Structs

PreemptiveSingleton

A pointer type for holding non-shared global state in multi-thread environment. Only the thread that sucessfully put data in it can access the data.

Singleton

A pointer type for holding shared global state in multi-thread environment.