Modernizing atomics

Ashod Nakashian ashnakash at gmail.com
Mon Oct 26 11:00:22 PDT 2015


On Mon, Oct 26, 2015 at 1:35 PM, Norbert Thiebaud <nthiebaud at gmail.com>
wrote:

> On Mon, Oct 26, 2015 at 12:14 PM, Ashod Nakashian <ashnakash at gmail.com>
> wrote:
> > OSL provides atomic helpers (osl_atomic_xxx) in the form of a GNU builtin
> > (where available) or a platform-specific implementation.
> >
> > Any reason for not using modern std::atomic (besides possible lack of
> > volunteers) ?
> >
> >
> > As a transitional phase, we can maintain the same interface but with
> > std:atomic as the implementation.
> >
> > Thoughts?
>
> osl atomic are c interface, used in c-source...
>
> Thanks. Is there equivalent used in C++ ? (osl atomics only work for
sal_Int32 values, which is another potential issue for 64-bit portability.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20151026/3356a275/attachment.html>


More information about the LibreOffice mailing list