Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jeffbee
· 5y ago · 0 comments
For a real battle-tested combination of spinlock and futex, see
https://github.com/abseil/abseil-cpp/blob/master/absl/synchr...
Comments
[–]
fisf
5y ago
Just pointing out: while this implementation is absolutely non- trivial to study, everytime I take a look at the abseil source, I am delighted with the quality of inline comments.
[–]
rigtorp
5y ago
Well isn't that just a normal lock/mutex of the "lightweight" type (only enter kernel on contention)?
You cannot use that in non-preemptible context.