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 2022/06/27 15:39:25 UTC

[Bug 50731] apr_atomic_casptr has wrong volatile qualifier

https://bz.apache.org/bugzilla/show_bug.cgi?id=50731

Yann Ylavic <yl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Yann Ylavic <yl...@gmail.com> ---
Two new functions with the correct API have been added to 1.8.x (r1902268):
  APR_DECLARE(void *) apr_atomic_casptr2(void *volatile *mem, void *with,
                                         const void *cmp);
  APR_DECLARE(void *) apr_atomic_xchgptr2(void *volatile *mem, void *with);

The apr_atomic_casptr() and apr_atomic_xchgptr() were changed (in place) in
r1763666, so 2.x (and late)r users can use that ones already.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org