[FFmpeg-devel] [PATCH 1/2] avutil/threadmessage: add av_thread_message_flush()

Clément Bœsch u at pkh.me
Tue Dec 1 17:39:30 CET 2015


On Tue, Dec 01, 2015 at 05:34:39PM +0100, Nicolas George wrote:
> Le primidi 11 frimaire, an CCXXIV, Clement Boesch a écrit :
> > Your suggestion is twice smaller.
> 
> I guess I was not clear enough: I was not asking about merits of this
> implementations over yours, but about the usefulness of the function for the
> application compared to reading and discarding each message in turn. I guess
> it is more efficient, but there are probably others, otherwise you would not
> have bothered.
> 

Ah. Well then the user can not do it himself since he has no way of
acquiring the queue lock (AVThreadMessageQueue is opaque)

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151201/567d67bc/attachment.sig>


More information about the ffmpeg-devel mailing list