Fix a very slight error in the mutex
This was just my attempt at being smart, I didn't realize `compare_exchange` returned the old value (I'm dumb!), so I thought that if the value was 1 then it must have become 2. Normally with small errors like these you should leave a comment explaining why, but really, compare and *exchange* is pretty obvious. My bad.
Loading
Please register or sign in to comment