Concurrency in action has proven itself as a bible/reference when dealing with modern C++ Concurrency. I hope Anthony Williams continue to update the editions after C++20.
@PaulSkeptic5 жыл бұрын
Code on slide at 34:10 is incorrect, it contains potential infinite loop: if *head* is changed between *head.load()* and *head.compare_exchange_weak()*, exchange will always fail and the *while* loop will go infinitely.
@azarashikamen40985 жыл бұрын
really? when compare exchange fails, new_node->next is replaced with latest head value. so, the loop will end eventually...