Quantcast
Channel: C++ atomic list container - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by user1084944 for C++ atomic list container

The first and most important problem: this can't possibly work. You need synchronization around the execution of the member functions, not around retrieving the list. std::atomic doesn't even begin to...

View Article



Answer by Quentin for C++ atomic list container

((MyList<int>&)l).push_back(i);std::atomic does not provide a conversion operator to a reference. Had you used a static_cast, it wouldn't even compile, but here the C-cast is directly...

View Article

C++ atomic list container

I'm playing around with std::atomic but I think I didn't fully understand the concept. I'm wondering why there are no atomic Containers. So I played a little bit around. First I tried the...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images