15 #include "llvm/Config/config.h"
23 void (*Deleter)(
void*))
const {
28 void* tmp = Creator ? Creator() : 0;
49 "Partially initialized ManagedStatic!?");
50 Ptr = Creator ? Creator() : 0;
60 assert(
DeleterFn &&
"ManagedStatic not initialized correctly!");
62 "Not destroyed in reverse order of construction?");
void llvm_acquire_global_lock()
const ManagedStaticBase * Next
void llvm_release_global_lock()
#define TsanHappensBefore(cv)
void(* DeleterFn)(void *)
void llvm_shutdown()
llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
bool llvm_is_multithreaded()
void RegisterManagedStatic(void *(*creator)(), void(*deleter)(void *)) const
ManagedStaticBase - Common base class for ManagedStatic instances.
static const ManagedStaticBase * StaticList
#define TsanIgnoreWritesEnd()
#define TsanIgnoreWritesBegin()
void llvm_stop_multithreaded()