From aac54e89d7945f3f4557067b1d4a1cd8853d369f Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 2 Jul 2011 06:35:21 +0000 Subject: See the ChangeLogs --- implement.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'implement.h') diff --git a/implement.h b/implement.h index 5344505..c4a00d2 100644 --- a/implement.h +++ b/implement.h @@ -85,21 +85,21 @@ typedef VOID (APIENTRY *PAPCFUNC)(DWORD dwParam); #else #define INLINE #endif + #if defined(_MSC_VER) && _MSC_VER < 1300 /* * MSVC 6 does not use the "volatile" qualifier */ -#define VOLATILE +#define PTW32_INTERLOCKED_VOLATILE #else -#define VOLATILE volatile +#define PTW32_INTERLOCKED_VOLATILE volatile #endif - #define PTW32_INTERLOCKED_LONG long #define PTW32_INTERLOCKED_SIZE size_t #define PTW32_INTERLOCKED_PVOID PVOID -#define PTW32_INTERLOCKED_LONGPTR VOLATILE long* -#define PTW32_INTERLOCKED_SIZEPTR VOLATILE size_t* -#define PTW32_INTERLOCKED_PVOID_PTR VOLATILE PVOID* +#define PTW32_INTERLOCKED_LONGPTR PTW32_INTERLOCKED_VOLATILE long* +#define PTW32_INTERLOCKED_SIZEPTR PTW32_INTERLOCKED_VOLATILE size_t* +#define PTW32_INTERLOCKED_PVOID_PTR PTW32_INTERLOCKED_VOLATILE PVOID* #if defined(__MINGW64__) || defined(__MINGW32__) # include @@ -147,7 +147,7 @@ struct ptw32_thread_t_ HANDLE threadH; /* Win32 thread handle - POSIX thread is invalid if threadH == 0 */ pthread_t ptHandle; /* This thread's permanent pthread_t handle */ ptw32_thread_t * prevReuse; /* Links threads on reuse stack */ - VOLATILE PThreadState state; + volatile PThreadState state; ptw32_mcs_lock_t threadLock; /* Used for serialised access to public thread state */ ptw32_mcs_lock_t stateLock; /* Used for async-cancel safety */ HANDLE cancelEvent; -- cgit v1.2.3