()
| 169 | } |
| 170 | |
| 171 | public void flush() |
| 172 | { |
| 173 | queueMutex.lock(); |
| 174 | |
| 175 | try { |
| 176 | while (!workQueue.isEmpty()) |
| 177 | try { |
| 178 | producerCond.await(); |
| 179 | } catch (InterruptedException e) { } |
| 180 | } finally { |
| 181 | queueMutex.unlock(); |
| 182 | } |
| 183 | |
| 184 | throwThreadException(); |
| 185 | } |
| 186 | |
| 187 | private void setThreadException(Exception e) |
| 188 | { |
no test coverage detected