Le primidi 11 frimaire, an CCXXIV, Clement Boesch a écrit : > The fix is simply to make sure to notify everyone when work is done (be > it reading or writing). Another solution would be to use 2 distincts > conditions.
Another solution would be to document that this API does not support interleaving messages from several threads (nor to, actually). I am fine with either solution, with a slight preference with using two conditions (less spurious wakeups) but it can come later. Your current patch seems fine. Thanks for explaining. I guess I had not thought of several simultaneous writers when convincing myself that a single condition was enough. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel