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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user