stdlib: Thread.Condition wake only if signaled

Previous implementation didn't check whether there are pending signals
after return from futex.wait. While it is ok for broadcast case it can
result in multiple wakeups when only one thread is signaled.
This implementation checks that there are pending signals before
returning from wait.
It is similar to the original implementation but the without initial
signal check, here we first go to the futex and then check for pending
signal.
9947b47d80Igor Anić committed on 11/21/2022, 4:26:54 PMparentf229b74
1 file changedLine totals unavailable