RTEMS C++ examples?

groups at chichak.ca groups at chichak.ca
Thu Jul 25 04:56:27 UTC 2019

I’m working on a bit of a hobby project right now and someone bullied me into trying C++. Fine. Plus I did say that I’d try it in anger at some point.

So far I’ve managed to get a simple Init going that creates two tasks. I haven’t tried it yet, since it was 2AM when I finally got the right sequence of extern “C”s in place to get it to compile.

Once I get something that demonstrates that the tasks are truly running and have some sort of demonstrable C++ nature, I’ll send someone a zip of the project file set and maybe I could learn some better idioms to get this stuff going and we can all learn from this.


> On 2019-July-24, at 17:46, Chris Johns <chrisj at rtems.org> wrote:
> On 25/7/19 9:25 am, Joel Sherrill wrote:
>> One open issue we don't know the right solution to is how to mix C/C++ threads
>> with POSIX threads. The language threads don't have as many attributes as POSIX
>> threads including stack size and priority. Ignoring that, the task
>> synchronization objects in C++ should just work on RTEMS.
> It would be really good to figure this out and have it work. There are some
> really neat things in C++11 and later like future and promise.
>> Maybe you can create (or port) some neat examples. And we could talk about them
>> on embedded.fm <http://embedded.fm>. :)
> +1
> Chris

More information about the users mailing list