c++11 std::atomic

Mikhail Svetkin mikhail.svetkin at gmail.com
Wed Jul 12 08:59:12 UTC 2017


Hi all,

Does RTEMS support c++11 std::atomic?

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
  std::cout « "val:" « val.load() « std::endl;
}

output:
0

Maybe i doing something wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170712/d1cdd4c1/attachment.html>


More information about the users mailing list