Quantcast
Channel: std::atomic to what extent? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by 6502 for std::atomic to what extent?

Your objection doesn't hold because *this at that moment is pointing to the object and the count is 1. The counter cannot get to 0 unless someone is not playing this game correctly (but in that case...

View Article



Answer by Jeremy Friesner for std::atomic to what extent?

some other thread just destroys the object and the destructor is called, which deletes object_m. So, the first thread will encounter a deleted memory location.Am I right? I don’t seem so!Assuming the...

View Article

std::atomic to what extent?

In the C++ Seasoning video by Sean Parent https://youtu.be/W2tWOdzgXHA at 33:41 when starting to talk about “no raw synchronization primitives”, he brings an example to show that with raw...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images