QWaitCondition as a class member ?
-
I tried to declare a QWaitCondition as a class member of a worker class, like in this post. But it doesn't work : wakeAll() crashes the app.
However, if I declare it at the top of the worker class .cpp file, it works. Why is that ?
@dpcrd Most likely you're calling wakeAll and destroy the worker along with the QWaitCondition variable, so other threads that wait on it crash, or something like that. Without looking at the code it's just guessing though.
-
@dpcrd Most likely you're calling wakeAll and destroy the worker along with the QWaitCondition variable, so other threads that wait on it crash, or something like that. Without looking at the code it's just guessing though.