From 5f7ea668d6d4c96d9e0efea21ac5e300fda552ad Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 8 Jan 2002 02:21:06 +0000 Subject: * mutex.c (pthread_mutex_trylock): use ptw32_interlocked_compare_exchange function pointer rather than ptw32_InterlockedCompareExchange() directly to retain portability to non-iX86 processors, e.g. WinCE etc. The pointer will point to the native OS version of InterlockedCompareExchange() if the OS supports it (see ChangeLog entry of 2001-10-17). --- private.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'private.c') diff --git a/private.c b/private.c index 8aa7d84..0d6b5f3 100644 --- a/private.c +++ b/private.c @@ -1080,9 +1080,10 @@ ptw32_InterlockedCompareExchange(PTW32_INTERLOCKED_LPLONG location, #else /* - * If we get to here then we should be running on a Win95 system but either - * running on something other than an X86 processor, or a compiler other - * than MSVC or GCC. Pthreads-win32 doesn't support that platform (yet). + * If execution gets to here then we should be running on a Win95 system + * but either running on something other than an X86 processor, or a + * compiler other than MSVC or GCC. Pthreads-win32 doesn't support that + * platform (yet). */ result = 0; -- cgit v1.2.3