MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / reown_producers

Function reown_producers

deps/concurrentqueue/concurrentqueue.h:3265–3273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

ConcurrentQueueMethod · 0.85
ConcurrentQueueClass · 0.85

Calls 1

next_prodMethod · 0.80

Tested by

no test coverage detected