MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / shutdown

Method shutdown

src/jrd/trace/TraceConfigStorage.cpp:154–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void ConfigStorage::shutdown()
155{
156 if (!m_timer)
157 return;
158
159 MutexLockGuard localGuard(m_localMutex, FB_FUNCTION);
160
161 m_timer->stop();
162 m_timer = NULL;
163
164 {
165 StorageGuard guard(this);
166 fb_assert(m_sharedMemory->getHeader()->cnt_uses != 0);
167 --(m_sharedMemory->getHeader()->cnt_uses);
168 if (m_sharedMemory->getHeader()->cnt_uses == 0)
169 {
170 m_sharedMemory->removeMapFile();
171 }
172 }
173
174 m_sharedMemory = NULL;
175}
176
177void ConfigStorage::mutexBug(int state, const char* string)
178{

Callers

nothing calls this directly

Calls 3

removeMapFileMethod · 0.80
stopMethod · 0.45
getHeaderMethod · 0.45

Tested by

no test coverage detected