Hi, developers,
I came across the following code snippet, where the condition for waiting on the condition variable is checked using an if statement:
platforms/windows/src/tests/mod.rs#L224
Could this potentially lead to spurious wakeups? Would it be better to use a while loop instead to ensure the condition is rechecked after each wakeup?
Hi, developers,
I came across the following code snippet, where the condition for waiting on the condition variable is checked using an if statement:
platforms/windows/src/tests/mod.rs#L224
Could this potentially lead to spurious wakeups? Would it be better to use a while loop instead to ensure the condition is rechecked after each wakeup?