[FFmpeg-devel] [PATCH] avutil/threadmessage: fix condition broadcasting
george at nsup.org
Tue Dec 1 17:03:42 CET 2015
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
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
Thanks for explaining. I guess I had not thought of several simultaneous
writers when convincing myself that a single condition was enough.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the ffmpeg-devel