usync
usync copied to clipboard
Fix barrier algorithm constants.
The COUNT_SHIFT was incorrectly 0 when it should have been 1 to shift out the QUEUED bit. This led to the initial barrier count being treated as a *const Waiter pointer and causing crashes/segfaults down the line. This PR also adds tests to make sure it's fixed.