Skip to main content
Brent's user avatar
Brent's user avatar
Brent's user avatar
Brent
  • Member for 9 years, 11 months
  • Last seen more than 2 years ago
revised
Value semantic type eraser
rename u_p to ptr
Loading…
asked
Loading…
comment
C++11 lock free collection similar to std::forward_list - follow-up
I almost forgot! I #undef deadDummy and spinDummy at the end so they don't pollute.
comment
C++11 lock free collection similar to std::forward_list - follow-up
Excellent advice here. I'm fairly confident about my use of relaxed memory order. The effects of the chosen operations never reach outside of other synchronized operations because their original state is restored before returning to the caller. I haven't used forwarding (C++11 is still kinda new to me) or swap much before. I'll try to remember the correct way! I agree with you regarding memory ordering requiring a certain level of guru-ness. I figure I have to do it wrong a bit before I'll get there. This was my first attempt. :) Thanks for your incredible insights!
Loading…
awarded
revised
Loading…
awarded
comment
C++11 class similar to .Net's ManualResetEvent, but without the ability to "reset"
Also, regarding the lambda. I'm thinking that the object construction that goes on in the background might be a slight performance hit. Any insights on this?
comment
C++11 class similar to .Net's ManualResetEvent, but without the ability to "reset"
I sometimes forget to switch naming conventions when switching languages.
awarded
awarded
revised
Loading…
Loading…
1 2
3