From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19666 invoked by alias); 29 Nov 2006 07:20:37 -0000 Received: (qmail 19656 invoked by uid 22791); 29 Nov 2006 07:20:36 -0000 X-Spam-Check-By: sourceware.org Received: from ns2.siemens.com.tr (HELO karya.siemens.com.tr) (212.133.141.62) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 29 Nov 2006 07:20:30 +0000 Received: from tristk010msx.tr001.siemens.net (kapadokya.siemens.com.tr [141.29.16.101]) by karya.siemens.com.tr (8.13.4/8.13.4/Debian-3) with ESMTP id kAT7QA65020137 for ; Wed, 29 Nov 2006 09:26:21 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: PTW32_INTERLOCKED_COMPARE_EXCHANGE is not working with wince and arm Date: Wed, 29 Nov 2006 07:20:00 -0000 Message-ID: <725A29F6B5035C45A40BDE230A5B92190921C3DC@TRISTK010MSX.tr001.siemens.net> From: "Sinan KAYA" To: X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00064.txt.bz2 =20 hi, if you have this combination of hardware and are trying to use pthreads, then you will or won't realize that your PTW32_INTERLOCKED_COMPARE_EXCHANGE function is not working. =20 PTW32_INTERLOCKED_COMPARE_EXCHANGE maps to ptw32_InterlockedExchange by default. ptw32_InterlockedExchange function; however, is written for x86 processor.=20 =20 Luckily wince already has InterlockedCompareExchange =20 The fix is to define=20 =20 PTW32_INTERLOCKED_COMPARE_EXCHANGE to InterlockedCompareExchange in implement.h =20 regards, Sinan.