MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / reown_producers

Function reown_producers

concurrentqueue.h:3301–3309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 //////////////////////////////////

Callers 2

ConcurrentQueueMethod · 0.85
ConcurrentQueueClass · 0.85

Calls 2

next_prodMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected