#include <gil_safe_call_once.h>
Public Member Functions | |
template<typename Callable > | |
gil_safe_call_once_and_store & | call_once_and_store_result (Callable &&fn) |
T & | get_stored () |
constexpr | gil_safe_call_once_and_store ()=default |
PYBIND11_DTOR_CONSTEXPR | ~gil_safe_call_once_and_store ()=default |
Private Attributes | |
bool | is_initialized_ = false |
std::once_flag | once_flag_ = {} |
char | storage_ [sizeof(T)] = {} |
Definition at line 46 of file gil_safe_call_once.h.
|
constexprdefault |
|
default |
|
inline |
Definition at line 50 of file gil_safe_call_once.h.
|
inline |
Definition at line 68 of file gil_safe_call_once.h.
|
private |
Definition at line 85 of file gil_safe_call_once.h.
|
private |
Definition at line 84 of file gil_safe_call_once.h.
|
private |
Definition at line 83 of file gil_safe_call_once.h.