From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Ср, 02.01.2008 20:41
To: stdcxx-dev@incubator.apache.org
Subject: Re: [PATCH] _mutex.h

>> +extern "C" long __cdecl _InterlockedIncrement (long volatile*);
>> +extern "C" long __cdecl _InterlockedDecrement (long volatile*);
>> +extern "C" long __cdecl _InterlockedExchange (long volatile*, long);

> Shouldn't the type of the argument be _RWSTD_INTERLOCKED_T* instead?
 
  No. _RWSTD_INTERLOCKED_T #defined only for 32-bit compiler, while intrinsic
functions are available in 32 and 64-bit compilers.

> If not, our convention is to put the cv-qualifier(s) before the type,
> not after it (i.e., const T* or volatile T*, rather than T const* or
> T volatile*).

Farid.
 

Reply via email to