Andreas Pflug wrote:
> Manfred Spraul wrote:
> 
> >
> > Wrong. There are portable test-and-set functions in the Win32 SDK: for 
> > example InterlockedCompareExchange. They operate on ints and do not 
> > need initialization.
> 
> 'k, missed that one. Lets use it.
> 
> >
> > There is a third option: Add one C++ file and use the constructor to 
> > initialize the mutex. VisualC is always a C++ compiler, thus C++ 
> > support shouldn't be an issue.
> 
> Our code is potentially not only VC.

True, MinGW and Cygwin.  Can we do the C solution?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to