By: Konrad Schwarz (no.spam.delete@this.no.spam), December 8, 2014 4:35 am
Room: Moderated Discussions
Michael S (already5chosen.delete@this.yahoo.com) on December 7, 2014 4:37 pm wrote:
> Konrad Schwarz (no.spam.delete@this.no.spam) on December 7, 2014 2:37 pm wrote:
> > 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
> >
> > Windows introduced condition variables and mutexes with Vista. I don't know how fast they are.
> >
> >
>
> As far as I remember, mutexes exist in Win32 since NT 3.1
I had thought that the condition variables introduced in Vista require a distinct
flavor of mutex. As it turns out, Vista condition variables work together with
Windows Critical Sections and "Slim Reader/Writer Locks".
> Konrad Schwarz (no.spam.delete@this.no.spam) on December 7, 2014 2:37 pm wrote:
> > 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
> >
> > Windows introduced condition variables and mutexes with Vista. I don't know how fast they are.
> >
> >
>
> As far as I remember, mutexes exist in Win32 since NT 3.1
I had thought that the condition variables introduced in Vista require a distinct
flavor of mutex. As it turns out, Vista condition variables work together with
Windows Critical Sections and "Slim Reader/Writer Locks".