public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* PTW32_INTERLOCKED_COMPARE_EXCHANGE is not working with wince and arm
@ 2006-11-29  7:20 Sinan KAYA
  0 siblings, 0 replies; only message in thread
From: Sinan KAYA @ 2006-11-29  7:20 UTC (permalink / raw)
  To: pthreads-win32


 
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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-29  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-29  7:20 PTW32_INTERLOCKED_COMPARE_EXCHANGE is not working with wince and arm Sinan KAYA

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).