| 190 | } |
| 191 | |
| 192 | void Thread::waitForCompletion() |
| 193 | { |
| 194 | if (isValid()) |
| 195 | { |
| 196 | fb_assert(!isCurrent()); |
| 197 | |
| 198 | int state = pthread_join(m_handle, NULL); |
| 199 | if (state) |
| 200 | Firebird::system_call_failed::raise("pthread_join", state); |
| 201 | m_handle = INVALID_HANDLE; |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | // ignore errors - this is abnormal completion call |
| 206 | void Thread::kill() noexcept |
no test coverage detected