Hacker News new | ask | show | jobs
by ataylor284_ 617 days ago
The writeup suggests this implementation is optimized for the not-locked case:

> uses an optimistic CAS (compare and swap) immediately, so that locking happens quickly when there's no contention