| 1125 | |
| 1126 | |
| 1127 | void SharedMemoryBase::removeMapFile() |
| 1128 | { |
| 1129 | fb_assert(sh_mem_header); |
| 1130 | |
| 1131 | if (!sh_mem_header->isDeleted()) |
| 1132 | { |
| 1133 | #ifndef WIN_NT |
| 1134 | FileLockHolder initLock(initFile); |
| 1135 | if (!sh_mem_header->isDeleted()) |
| 1136 | { |
| 1137 | unlinkFile(); |
| 1138 | sh_mem_header->markAsDeleted(); |
| 1139 | } |
| 1140 | #else |
| 1141 | fb_assert(!sh_mem_unlink); |
| 1142 | sh_mem_unlink = true; |
| 1143 | sh_mem_header->markAsDeleted(); |
| 1144 | #endif // WIN_NT |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | void SharedMemoryBase::unlinkFile() |
| 1149 | { |
no test coverage detected