You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2007/11/05 08:38:54 UTC

DO NOT REPLY [Bug 43793] New: - builtin atomics on Windows

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43793>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43793

           Summary: builtin atomics on Windows
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P3
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: serai@lans-tv.com


http://msdn2.microsoft.com/en-us/library/26td21ds(vs.71).aspx
VC++ 7.1 has
_InterlockedCompareExchange 
_InterlockedDecrement 
_InterlockedExchange 
_InterlockedExchangeAdd 
_InterlockedIncrement 

I'm not sure if compilers prior to 7.1 have them.

http://msdn2.microsoft.com/en-us/library/wt813x6k(VS.80).aspx
on x86_64 and Itanium VC++ 8 has
_InterlockedExchangePointer
_InterlockedCompareExchangePointer

These are more useful than atomics of Win32API because:

1) faster
2) They accept both singed and unsigned variable acceptable, 
so there's no need to use casts.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


DO NOT REPLY [Bug 43793] - builtin atomics on Windows

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43793>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43793





------- Additional Comments From serai@lans-tv.com  2007-11-05 00:02 -------
Created an attachment (id=21085)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21085&action=view)
against trunk

I left IA64 and x86_64 apr_atomic_casptr and apr_atomic_xchgptr untouched

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org