[FFmpeg-devel] [RFC] lockmgr callback inclusion into libs sources

Michael Niedermayer michaelni at gmx.at
Mon May 7 18:45:49 CEST 2012


On Mon, May 07, 2012 at 05:20:34PM +0300, Andrey Utkin wrote:
> I'd like to offer inclusion of suitable lockmgr callback functions
> into libraries code.
> (To make it clear for non-familiar people: i mean the function we
> register with lavc av_lockmgr_register() when we work multithreadingly
> with {de,en}coders.
> Currently every app maker who needs it must copy&paste it from web,
> while there seem not to be much deviations in implementation of this
> routine for different case.
> E.g. for pthreads-enabled compilations, it should be what is at bottom
> of the letter.
> We can include such standard implementations for major platforms
> (posix, winapi), and embrace it with ifdefs. So app makers can just
> av_lockmgr_register() it with functions which are already there in
> libs.
> Comments, and help on patch forming are appreciated.

I think this is a great idea that should simplify useage of ffmpeg.

The function (ff_pthread_lockmgr ?) would need to be added to a
header though because ffmpeg may be compiled without pthread support
and that otherwise would mean its unavailable (sometimes) to user apps


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120507/dd344624/attachment.asc>


More information about the ffmpeg-devel mailing list