#include <misc.h>
Public Member Functions | |
Singleton (F objectFactory=F()) | |
CRYPTOPP_NOINLINE const T & | Ref (CRYPTOPP_NOINLINE_DOTDOTDOT) const |
This function safely initializes a static object in a multithreaded environment without using locks. It may leak memory when two threads try to initialize the static object at the same time but this should be acceptable since each static object is only initialized once per session.
Definition at line 110 of file misc.h.