Yes
I am mostly asking because I/O is Qt is usually done event driven, e.g. sockets, but also serial port.
So I was wondering if you are sure you'll need a thread and all the things that come with multithreaded programming.
In multithread programming that refers to access to a shared resource, e.g. memory, by two threads without the necessary synchronization.
Also called a data race.
In your case one thread writing a variable and the other reading it.
This usually means that the Qt installed signal handler exits the main event loop.
Have you tried with a simple program without any thread?
Just a QCoreApplication that execs and print something after the exec call?
Cheers,
_






Reply With Quote

Bookmarks