You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "PetervdPerk-NXP (via GitHub)" <gi...@apache.org> on 2024/01/15 14:07:38 UTC

[I] CXX C11 Atomic support [nuttx]

PetervdPerk-NXP opened a new issue, #11547:
URL: https://github.com/apache/nuttx/issues/11547

   If you've got a C C11 library that's using `<stdatomic.h>` and you want to use this library in CXX you simply can't. C++ provides a compatibility header `<atomic>` but if you use the NuttX libcxxmini library it doesn't provide a atomic implementation. Unless you use of-course the std libraries but these tend to big.
   
   It would interesting if we could have a minimal `<atomic>`implementation for libcxxmini.
   
   Do note it seems that C++23 partially fixes this incompatibility.
   https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0943r6.html
   
   Would be interesting if it's possible to backport that. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] CXX C11 Atomic support [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on issue #11547:
URL: https://github.com/apache/nuttx/issues/11547#issuecomment-1894194381

   Yes, @hujun260 hit the similar issue recently. atomic is a good addition to libcxxmini.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org