fix: move newly allocated resources to the main thread
This avoids them getting deleted when the worker thread exits, due to thread affinity on the created thread. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
9e35230467
commit
10493bd44a
3 changed files with 28 additions and 3 deletions
|
@ -79,4 +79,7 @@ private:
|
|||
ResultPtr m_result;
|
||||
|
||||
std::atomic<bool> m_aborted = false;
|
||||
|
||||
/** This is the thread in which we should put new mod objects */
|
||||
QThread* m_thread_to_spawn_into;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue