[x265] ThreadSafeInteger waitForChange problem

Ximing Cheng chengximing1989 at gmail.com
Sun Apr 3 08:04:01 CEST 2016


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20160403/9e415900/attachment.html>


More information about the x265-devel mailing list