| 3263 | } |
| 3264 | |
| 3265 | void reown_producers() |
| 3266 | { |
| 3267 | // After another instance is moved-into/swapped-with this one, all the |
| 3268 | // producers we stole still think their parents are the other queue. |
| 3269 | // So fix them up! |
| 3270 | for (auto ptr = producerListTail.load(std::memory_order_relaxed); ptr != nullptr; ptr = ptr->next_prod()) { |
| 3271 | ptr->parent = this; |
| 3272 | } |
| 3273 | } |
| 3274 | |
| 3275 | |
| 3276 | ////////////////////////////////// |
no test coverage detected