LLVM
8.0.1
|
ManagedStaticBase - Common base class for ManagedStatic instances. More...
#include "llvm/Support/ManagedStatic.h"
Public Member Functions | |
bool | isConstructed () const |
isConstructed - Return true if this object has not been created yet. More... | |
void | destroy () const |
Protected Member Functions | |
void | RegisterManagedStatic (void *(*creator)(), void(*deleter)(void *)) const |
Protected Attributes | |
std::atomic< void * > | Ptr |
void(* | DeleterFn )(void *) |
const ManagedStaticBase * | Next |
ManagedStaticBase - Common base class for ManagedStatic instances.
Definition at line 37 of file ManagedStatic.h.
void ManagedStaticBase::destroy | ( | ) | const |
Definition at line 63 of file ManagedStatic.cpp.
References assert(), DeleterFn, Next, and Ptr.
Referenced by llvm::llvm_shutdown().
|
inline |
isConstructed - Return true if this object has not been created yet.
Definition at line 49 of file ManagedStatic.h.
Referenced by llvm::PluginLoader::getNumPlugins(), and llvm::PluginLoader::getPlugin().
|
protected |
Definition at line 35 of file ManagedStatic.cpp.
References assert(), DeleterFn, getManagedStaticMutex(), llvm::llvm_is_multithreaded(), llvm::Lock, Next, Ptr, and StaticList.
|
mutableprotected |
Definition at line 42 of file ManagedStatic.h.
Referenced by destroy(), and RegisterManagedStatic().
|
mutableprotected |
Definition at line 43 of file ManagedStatic.h.
Referenced by destroy(), and RegisterManagedStatic().
|
mutableprotected |
Definition at line 41 of file ManagedStatic.h.
Referenced by destroy(), and RegisterManagedStatic().