| 157 | #endif |
| 158 | |
| 159 | void waitFor(AllThreads& thr) |
| 160 | { |
| 161 | Firebird::MutexLockGuard g(threadsMutex, FB_FUNCTION); |
| 162 | while (!thr.empty()) |
| 163 | { |
| 164 | Thrd t = std::move(thr.back()); |
| 165 | thr.pop_back(); |
| 166 | { |
| 167 | Firebird::MutexUnlockGuard u(threadsMutex, FB_FUNCTION); |
| 168 | t.thread.waitForCompletion(); |
| 169 | fb_assert(t.ending); |
| 170 | } |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | AllThreads threads; |
| 175 | Firebird::Mutex threadsMutex; |
nothing calls this directly
no test coverage detected