Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Wait until condition confirmation in atomic operations (try once methods) #5579
Do not abort prematurely on failed cmpxchg, restart the atomic loop and wait for condition confirmation instead.
Example: two threads are executing semaphore trywait at the same time on semaphore with an initial value of 2.
Condition confirmation is important in try once methods.