| 3299 | } |
| 3300 | |
| 3301 | void reown_producers() |
| 3302 | { |
| 3303 | // After another instance is moved-into/swapped-with this one, all the |
| 3304 | // producers we stole still think their parents are the other queue. |
| 3305 | // So fix them up! |
| 3306 | for (auto ptr = producerListTail.load(std::memory_order_relaxed); ptr != nullptr; ptr = ptr->next_prod()) { |
| 3307 | ptr->parent = this; |
| 3308 | } |
| 3309 | } |
| 3310 | |
| 3311 | |
| 3312 | ////////////////////////////////// |
no test coverage detected