<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">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.</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN><VAR id=yui-ie-cursor></VAR><BR style="RIGHT: auto"> </div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> BugMaster <BugMaster@narod.ru><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Mailing list for x264 developers <x264-devel@videolan.org> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, August 22, 2013 7:20 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [x264-devel] lookahead and encoder threads sync<BR></FONT></DIV>
<DIV class=y_msg_container><BR>On Thu, 22 Aug 2013 10:07:30 -0700 (PDT), Axel Voss wrote:<BR>> When one or more lookahead threads are started and we have several<BR>> encoder threads, how does it work the syncronizing?<BR>> When I check it with  valgrind  tool=helgrind there are some race<BR>> condition problems in interlaced mode. I found that in mpeg2 some<BR>> enoceer threads call unsynced mbaff routines. It does not happen in<BR>> avc mode. I have coreccted this with mutex lock. But it seems that's<BR>> not the solving the original Problem. What is the plan for that?  <BR><BR>I now fully understand what you tested. You mention mpeg2 so I guess<BR>you mean x262 and not x264? Be more specific about that.<BR><BR>_______________________________________________<BR>x264-devel mailing list<BR><A href="mailto:x264-devel@videolan.org" ymailto="mailto:x264-devel@videolan.org">x264-devel@videolan.org</A><BR><A
 href="https://mailman.videolan.org/listinfo/x264-devel" target=_blank>https://mailman.videolan.org/listinfo/x264-devel</A><BR><BR><BR></DIV></DIV></DIV></div></body></html>