Hello,
About C++ and real-time systems...
You have finally understood my way of coding real-time softwares..
I think that you have to simplify the code in real-time and realtime
critical systems, so i think that you have to use less code and verify
it effectively, this is what i have done
Please look at the following memory pools:
http://www.mario-konrad.ch/blog/programming/cpp-memory_pool.html
You will notice that the operations using the heap are of logarithmic
nature, so it's not as efficient as my C++ MemPool for real-time systems
that is O(1) in its operations, and that uses also templates and that
has an interface that is carefully designed to be easy to use and efficient.
My way of designing real-time softwares that works under QNX real-time
OS and VxWorks real-time OSs and other real-time OSs..
To be able to implement real-time softwares that control robots etc.
i have first implemented my C++ MemPool for real-time systems,
now it is easy to verify it by taking a look at its source code etc.
also i have provided you with a C++ threadpool that permits you
to code real-time softwares, it is easy to verify the source
code of this C++ threadpool and you will notice that it only
uses static arrays and it doesn't use dynamic memory and of
course it uses pthread , so it is portable to QNX real-time OS
and to VxWorks real-time OSs and to other real-time OSs,
also i will provide you with thread-safe bounded FIFO queue
for real-time systems and a thread-safe bounded LIFO stack for
real-time systems , and you will be able with all this to
code for real-time OSs and control robots etc.
You can download the C++ threadpool from here:
https://sites.google.com/site/aminer68/c-threadpool
And you can download my C++ MemPool for real-time systems from here:
https://sites.google.com/site/aminer68/c-mempool-for-real-time-systems
Thank you,
Amine Moulay Ramdane.