[x264-devel] Re: bug in commit 607

Tomas Carnecky tom at dbservice.com
Mon Dec 18 22:08:31 CET 2006


Marco Gaddoni wrote:
> so, provided that usleep is not inlined and foo is somewhat global i 
> think this kind
> of synconization should work.

This is the problem.. it 'should' work, but it doesn't have to! That's 
why there is libpthread that provides proper synchronization structures 
(eg. mutex).
Either use a 'real' mutex (libpthread or the win32-equivalent) or drop 
the multithreading support. But please no half-baked solutions.

tom

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list