C++ is well supported on QNX6. It uses the GNU compiler.
About the libraries, I don’t know for sure, but from my own experience they
seem pretty thread stable, e.g., I output to cout from two threads and they
were no problems.
I do heavy C++ development and didn’t run into problems yet.
“Arve Slenes” <email@example.com> wrote in message
Now then. If I do use QNX RTP / QNX.v6
(I got to know this morning that we’re going to use QNX.v6).
How would that work with threads in C++?
Are there good thread support for C++ in QNX.v6?
Any C++ related problems I should know about?
David Gibbs wrote:
Arve Slenes <> firstname.lastname@example.org> > wrote:
In the Watcom C library there are functions such as _beginthread()
and _endthread() to start and end threads and fork() for processes.
My question is: Are there any equivalent functions for C++, or do
I also use the C library commands to set up threads and processes in
Be careful. Be very very careful. The C library is mostly thread
unsafe, the C++ library is also iffy. If you absolutely MUST use
threads in a QNX 4 C++ environment, I would strongly suggest also
passing the -bm flag to wpp386 – this can be done with cc by
giving it “-WC,-bm”.
(BTW, this newsgroup is intended for QNX RTP discussion, that is, for
QNX6 – Watcom is not the compiler for QNX6. You might want
qdn.public.qnx4.os for further questions.)
QNX Training Services