in Cthulhu/include/cthulhu/Framework.h [28:68]
inline void cleanup(bool force = false, bool logging = true) {
if (force) {
if (clockManager_) {
clockManager_->forceClean();
}
if (streamRegistry_) {
streamRegistry_->forceClean();
}
if (memoryPool_) {
memoryPool_->forceClean();
}
if (typeRegistry_) {
typeRegistry_->forceClean();
}
if (contextRegistry_) {
contextRegistry_->forceClean();
}
}
if (!logging) {
if (clockManager_) {
clockManager_->disableLogging();
}
if (streamRegistry_) {
streamRegistry_->disableLogging();
}
if (memoryPool_) {
memoryPool_->disableLogging();
}
if (typeRegistry_) {
typeRegistry_->disableLogging();
}
if (contextRegistry_) {
contextRegistry_->disableLogging();
}
}
clockManager_.reset();
streamRegistry_.reset();
memoryPool_.reset();
typeRegistry_.reset();
contextRegistry_.reset();
}