apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <brian.p...@cnet.com>
Subject [PATCH] Updated atomic API
Date Fri, 19 Sep 2003 04:42:44 GMT
Thanks to all who provided feedback on the apr_atomic API
changes that I posted last week.  Here's the updated patch
that I'm planning to commit; I'll wait a few days in case
more people want to comment.

Things that have changed since the original patch:
  - Added a new function apr_atomic_xchg32 to exchange
    two values
  - Documented that the atomic functions will implement
    a memory barrier internally

Changes not yet made:
  - Removal of the old API (I saw two comments in favor
    of this, including my own; I'll wait for an official
    3 +1s and no -1s before I start deleting stuff)
  - Return values for the add, subtract, and inc functions
    (I haven't figured out a way to implement these
    efficiently)

Brian


Mime
View raw message