Fixed an error in the test. While signalling a condition variable without hodling the lock I didn't take into account that the loop calling the signals and then testing if a thread catched it might awake multiple threads because the test loop gets the memory sync mutex before the thread whose condition variable wait caught the signal, so the next signal might wake another thread.
Fixed an error in the test. While signalling a condition variable without hodling the lock I didn't take into account that the loop calling the signals and then testing if a thread catched it might awake multiple threads because the test loop gets the memory sync mutex before the thread whose condition variable wait caught the signal, so the next signal might wake another thread.

bjoernknafla/amp,bjoernknafla/amp