[FFmpeg-devel] [PATCH 1/3] avcodec: add ff_lock/unlock_avcodec functions.
michaelni at gmx.at
Sun Dec 2 21:37:06 CET 2012
On Tue, Nov 27, 2012 at 09:59:30PM +0100, Reimar Döffinger wrote:
> Will be used in future patches, together with the
> variable that allows checking whether the lock is held.
cant the code be simplified to avoid 2 variables (ff_avcodec_locked
and entangled_thread_counter) and use just 1 ?
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel