| 91 | } |
| 92 | |
| 93 | void free(Buffer *b) |
| 94 | { |
| 95 | lock_guard guard(used_lock); |
| 96 | if (b == buffers[0]) { |
| 97 | used[0] = false; |
| 98 | available_cond.notify_one(); |
| 99 | } else if (b == buffers[1]) { |
| 100 | used[1] = false; |
| 101 | available_cond.notify_one(); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | ~PoolAllocatorImpl() |
| 106 | { |
nothing calls this directly
no test coverage detected