to be called in destructor
| 165 | |
| 166 | // to be called in destructor |
| 167 | void StopPrefetchThread() { |
| 168 | ProducerStop(); |
| 169 | if (prefetch_thread_.joinable()) { |
| 170 | producer_.notify_one(); |
| 171 | // join the prefetch thread and destroy it |
| 172 | prefetch_thread_.join(); |
| 173 | prefetch_thread_ = {}; |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | bool HasContiguousOutputs() const override { |
| 178 | return false; |
no outgoing calls
no test coverage detected