public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: "Sinan KAYA" <sinan.kaya@siemens.com>
To: <pthreads-win32@sources.redhat.com>
Subject: PTW32_INTERLOCKED_COMPARE_EXCHANGE is not working with wince and arm
Date: Wed, 29 Nov 2006 07:20:00 -0000	[thread overview]
Message-ID: <725A29F6B5035C45A40BDE230A5B92190921C3DC@TRISTK010MSX.tr001.siemens.net> (raw)


 
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.
 
PTW32_INTERLOCKED_COMPARE_EXCHANGE maps to ptw32_InterlockedExchange by
default. ptw32_InterlockedExchange function; however, is written for x86
processor. 
 
Luckily wince already has InterlockedCompareExchange
 
The fix is to define 
 
PTW32_INTERLOCKED_COMPARE_EXCHANGE to InterlockedCompareExchange in
implement.h
 
regards,
Sinan.

                 reply	other threads:[~2006-11-29  7:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=725A29F6B5035C45A40BDE230A5B92190921C3DC@TRISTK010MSX.tr001.siemens.net \
    --to=sinan.kaya@siemens.com \
    --cc=pthreads-win32@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).