c++11 std::atomic
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Jul 12 09:05:21 UTC 2017
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.
More information about the users
mailing list