Hi @António Sérgio Azevedo @Ryan
I want use C++ to write application, so I need to know whether the Azure RTOS(Threadx ) support C++. and I found QuantumLeaps qpcpp have a c++ port,(https://github.com/QuantumLeaps/qpcpp/tree/master/ports/threadx), Dose the Threadx SMP support C++??
Threadx c++
Hi, all
Dose Threadx smp support C++??
thanks
-
123 146 Reputation points
2020-12-11T03:12:17.287+00:00
2 additional answers
Sort by: Most helpful
-
Ryan 276 Reputation points Microsoft Employee
2020-12-10T18:14:42.387+00:00 Hi @123 ,
- Azure RTOS includes the correct extern "C" wrappers in the interface header files, so supports calling directly from a c++ class.
- There is no supported c++ class interfaces for Azure RTOS. You would have to write and support these yourself.
Thanks
-
António Sérgio Azevedo 7,671 Reputation points Microsoft Employee
2020-12-10T17:25:06.573+00:00 Hi @123 ,
Azure RTOS ThreadX source code is here: https://github.com/azure-rtos/threadx and is written in ANSI C and Assembly mostly.See also here in the official documentation: https://learn.microsoft.com/en-us/azure/rtos/threadx/threadx-smp/chapter1#ansi-c-source-code
"ThreadX SMP is written primarily in ANSI C. A small amount of assembly language is needed to tailor the kernel to the underlying target processor. This design makes it possible to port ThreadX SMP to a new processor family in a very short time—usually within weeks!"
Please add your feedback below, suggesting the business reason to have ThreadX SMP supporting C++.
Thank you!
Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.