Fix job queue crash

* Don't add jobs when job queue is full
* Icrease job queue size from 1024 to 8192
This commit is contained in:
Lukas W
2018-04-29 17:01:51 +02:00
parent fce9326192
commit ccd4ff3c2c
2 changed files with 10 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ public:
void wait();
private:
#define JOB_QUEUE_SIZE 1024
#define JOB_QUEUE_SIZE 8192
QAtomicPointer<ThreadableJob> m_items[JOB_QUEUE_SIZE];
AtomicInt m_queueSize;
AtomicInt m_itemsDone;