Re: Building with Visual C++

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Building with Visual C++
Date: 2006-04-24 19:48:07
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA0F933@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> > > *) Add s_lock implementation based on InterlockedCompareExchange
> > > instead of assembly code (gcc style asm not supported, and
> > this should
> > > probably be about as fast from what I hear)
> >
> > _InterlockedCompareExchange is even better IMHO ...
>
> I could've sworn the non-_ was #defined to the other one, but
> double-checkign that I see that's only done on 64-bit
> systems. Will update.

Hm. Wrong again :-(
Seems the whole _InterlockedCompareExchange version is only *available*
on 64-bit.

So we might want to look into doing that thing in assembly anyway, but
for now I'll just stick with the standard InterlockedCompareExchange.

//Magnus

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2006-04-24 20:05:05 Re: Building with Visual C++
Previous Message Tom Lane 2006-04-24 15:51:34 Re: Building with Visual C++