Skip to main content
15 events
when toggle format what by license comment
Feb 9, 2022 at 18:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 11, 2022 at 0:19 comment added Davislor Don’t have a chance to give a full answer right now, but there definitely seems to be a race in dequeue if another thread dequeues between when idx_r is read and when it updates.
Jan 10, 2022 at 15:14 answer added Toby Speight timeline score: 1
S Oct 30, 2019 at 12:42 history suggested Muntasir
added a tag
Oct 30, 2019 at 12:00 history tweeted twitter.com/StackCodeReview/status/1189512432642859009
Oct 30, 2019 at 10:29 review Suggested edits
S Oct 30, 2019 at 12:42
Oct 26, 2019 at 19:24 history edited Perl99 CC BY-SA 4.0
Add example usage
Oct 24, 2019 at 19:00 comment added G. Sliepen Even if the volatile would be the right thing to use, it probably should have been Element *volatile *elements.
Oct 24, 2019 at 14:59 history edited Perl99 CC BY-SA 4.0
Address comments about volatile and tests
Oct 24, 2019 at 14:55 comment added Perl99 I wish I had tests for the code. I inherited it as is.
Oct 23, 2019 at 15:18 comment added Toby Speight You might want to #include <atomic> rather than relying on compiler-specific extensions. BTW, you should consider including your test code in the question, so we can see how you expect this to be used (and perhaps identify tests you've missed).
Oct 23, 2019 at 10:51 comment added πάντα ῥεῖ volatile doesn't protect your variables from race conditions. You can read more about that here.
Oct 22, 2019 at 21:25 review Close votes
Oct 23, 2019 at 15:46
Oct 22, 2019 at 21:05 review First posts
Oct 22, 2019 at 21:21
Oct 22, 2019 at 21:03 history asked Perl99 CC BY-SA 4.0