| 152 | } |
| 153 | |
| 154 | void 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 | |
| 177 | void ConfigStorage::mutexBug(int state, const char* string) |
| 178 | { |
nothing calls this directly
no test coverage detected