[x264-devel] lookahead and encoder threads sync

Axel Voss axvo at ymail.com
Fri Aug 23 10:28:57 CEST 2013


I mean the x264_macroblock_cache_load routine with setted b_mbaff flag. When I use there a static local variable as counter and I print the thread id and counter I see in mpeg4 mode that the counts are continuously. In mpeg2 mode it happens that another thread has the same counter value. When I save this routine with mutex it does not happen. The behavior is the same as the mpeg4.

 

________________________________
From: BugMaster <BugMaster at narod.ru>
To: Mailing list for x264 developers <x264-devel at videolan.org> 
Sent: Thursday, August 22, 2013 7:20 PM
Subject: Re: [x264-devel] lookahead and encoder threads sync


On Thu, 22 Aug 2013 10:07:30 -0700 (PDT), Axel Voss wrote:
> When one or more lookahead threads are started and we have several
> encoder threads, how does it work the syncronizing?
> When I check it with  valgrind  tool=helgrind there are some race
> condition problems in interlaced mode. I found that in mpeg2 some
> enoceer threads call unsynced mbaff routines. It does not happen in
> avc mode. I have coreccted this with mutex lock. But it seems that's
> not the solving the original Problem. What is the plan for that?  

I now fully understand what you tested. You mention mpeg2 so I guess
you mean x262 and not x264? Be more specific about that.

_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
https://mailman.videolan.org/listinfo/x264-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20130823/0c3f822e/attachment.html>


More information about the x264-devel mailing list