main and background thread example
Unsolved
General and Desktop
-
Using the top command for example. Valgrind etc.
-
-
@user4592357 said in main and background thread example:
ThreadObj obj;
m_thread = std::thread(&ThreadObj::work, &obj);obj is allocated on the stack, it will go out of scope and delete itself
-
Out of curiosity, what are you doing that requires to subclass QThread ?