[FFmpeg-devel] [RFC] Removing non-pthreads support

avcoder ffmpeg
Sat Apr 24 17:47:01 CEST 2010


On Sat, Apr 24, 2010 at 11:29 PM, Ramiro Polla <ramiro.polla at gmail.com>wrote:

> 2010/4/21 M?ns Rullg?rd <mans at mansr.com>:
> > Ramiro Polla <ramiro.polla at gmail.com> writes:
> >> Another thing, starting with Windows Vista, windows now has condition
> >> variables, maybe w32 threading could be re-implemented using those
> >> (I'm just suggesting, I don't know if there would be any benefit).
> >
> > I suggested this removal because I want less code to maintain.  If
> > pthreads is adequate, there is no reason to bulk up our code with
> > support for other threading models.
>
> There seems to be a 1:1 mapping using condition variables (but I haven't
> tested)
> pthread_cond_signal -> WakeConditionVariable
> pthread_cond_broadcast -> WakeAllConditionVariable
>

WakeConditionVariable() and WakeAllConditionVariable() need Windows
Server 2008 or higher

Windows XP does not support these APIs
-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2



More information about the ffmpeg-devel mailing list