By: dmsc (no.more.delete@this.spam.please), December 6, 2014 7:39 am
Room: Moderated Discussions
Eric Bron (eric.bron.delete@this.zvisuel.privatefortest.com) on December 6, 2014 4:25 am wrote:
> > On windows it's more complicated, as GCC stil tries to generate winxp compatible
> > code, so it assumes no critical section support.
>
> I can't understand why since Windows XP has full critical sections support (in WinBase.h
> AFAIK) already, as Windows 2000, I suppose it applies to very old Windows version
>
So I misremembered, the problem was the support of std::condition_variable, that needed newer windows versions if std::muted was implemented over critical sections.
In any case, we use our own simplified mutex and condition_variable that use critical section on win32/win64
> > On windows it's more complicated, as GCC stil tries to generate winxp compatible
> > code, so it assumes no critical section support.
>
> I can't understand why since Windows XP has full critical sections support (in WinBase.h
> AFAIK) already, as Windows 2000, I suppose it applies to very old Windows version
>
So I misremembered, the problem was the support of std::condition_variable, that needed newer windows versions if std::muted was implemented over critical sections.
In any case, we use our own simplified mutex and condition_variable that use critical section on win32/win64