Re:Correctly implementing a spinlock in Modern C++
by MichaEiler on Saturday June 26, 2021 @07:52AM
(#27641102)
I'm surprised nobody has mentioned Linus's rant about spinlocks in userspace: https://www.realworldtech.com/forum/?threadid=189711&curpost...
[ Parent
| on HN ]
Re:Correctly implementing a spinlock in Modern C++
by rigtorp on Tuesday June 29, 2021 @03:09PM
(#27680355)
His rant only applies to preemptible threads. If you don't have preemptible threads spinlocks works great. The linux kernel uses them in non-preemptible contexts.
Re:Correctly implementing a spinlock in Modern C++
by thunkshift1 on Saturday June 26, 2021 @03:50PM
(#27645205)
There should be site like linus-rants.com