Modernizing atomics
Norbert Thiebaud
nthiebaud at gmail.com
Mon Oct 26 11:21:22 PDT 2015
On Mon, Oct 26, 2015 at 1:00 PM, Ashod Nakashian <ashnakash at gmail.com> wrote:
> 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.)
the c++ code use these too.
relying on atomic on 64 bits is going to be a problem as long as we
support 32 bits OS.
and mostly these atomic are used to ref-count... and there is really
no reasonable need to have 64 bits ref-count is there ?
Norbert
More information about the LibreOffice
mailing list