37 for (
int i = static_cast<int>(deleters_.size()) - 1; i >= 0; --i)
41 void StaticDeleterDeleter::SetInstancePtr(
51 s_singleton_holder.
Reset(instance);
62 SetInstancePtr(
"StaticDeleterDeleter", NULL);
~StaticDeleterDeleter() override
StaticDeleterDeleter is an internal class that holds and deletes StaticDeleters; it should not be use...
port::LogEntryWriter * GetDefaultLogEntryWriter()
Returns the log-writer that messages will be logged to if if another is not explicitly specified via ...
static void DestroyInstance()
Call this function once, and only once, at the end of a program, to explicitly destroy all StaticDele...
#define ION_DECLARE_SAFE_STATIC(type, variable, constructor, add_func, destroyer)
Declares and thread-safely assigns the value of a static variable.
A LockGuard locks a mutex when created, and unlocks it when destroyed.
Copyright 2016 Google Inc.
void Reset(T *new_shared)
Changes the pointer to point to the given shared, which may be NULL.
A SharedPtr is a smart shared pointer to an instance of some class that implements reference counting...
static StaticDeleterDeleter * GetInstance()
Returns a pointer to the global instance.