> Right, so it's a trade-off between keeping a mutex allocated for my version, > and three extra atomic ops for your version. Maybe it doesn't matter much > and we're essentially bikeshedding? Good question, but I don't like to let an issue pending. This is haunting me and I can't find how to sleep until it is fixed. And it eventually explode a few months later into my face. > That looks slightly more elegant than our solutions IMO. Agreed, but the multiplatform abstraction make it not easy to use.