c++11 std::atomic
Mikhail Svetkin
mikhail.svetkin at gmail.com
Wed Jul 12 09:13:54 UTC 2017
Thanks!
I will try.
2017-07-12 14:05 GMT+05:00 Sebastian Huber <
sebastian.huber at embedded-brains.de>:
> Hello Mikhail,
>
> On 12/07/17 10:59, Mikhail Svetkin wrote:
>
>> Hi all,
>>
>> Does RTEMS support c++11 std::atomic?
>>
>
> yes, this is fully supported including libatomic from GCC.
>
>
>> I've tried this example on ARMv7 in RTEMS 4.12(latest master).
>>
>> nt main() {
>> std::atomic<int> val;
>> val.store(0);
>> std::cout « "val:" « val.load() « std::endl;
>> val++; // program is not responding
>>
>
> I guess this problem is related to the latest tool chain changes which
> made an ABI incompatible change in the Newlib struct _reent. Please remove
> the previous RTEMS 4.12 installation and update the tool chain via the RSB.
> Then update to the latest RTEMS master.
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail : sebastian.huber at embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170712/230cc70b/attachment-0002.html>
More information about the users
mailing list