The waitForChange member function in ThreadSafeInteger class will
call pthread_cond_wait in pthread or SleepConditionVariableCS in Windows in
an IF statement, but as the following:

http://stackoverflow.com/questions/10595363/pthread-cond-wait-without-a-while-loop

http://stackoverflow.com/questions/1136371/pthread-and-wait-conditions

the condition should be in a while loop, not in an if statement.

Is right to change the if into while?

Thanks!
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to