JobQueue: Rename m_queueSize to m_writeIndex

Hopefully makes it less confusing that m_writeIndex grows beyond
JOB_QUEUE_SIZE when the queue is full.
This commit is contained in:
Lukas W
2018-05-02 12:54:45 +02:00
parent ccd4ff3c2c
commit 9a52c7b901
2 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ public:
JobQueue() :
m_items(),
m_queueSize( 0 ),
m_writeIndex( 0 ),
m_itemsDone( 0 ),
m_opMode( Static )
{
@@ -64,7 +64,7 @@ public:
private:
#define JOB_QUEUE_SIZE 8192
QAtomicPointer<ThreadableJob> m_items[JOB_QUEUE_SIZE];
AtomicInt m_queueSize;
AtomicInt m_writeIndex;
AtomicInt m_itemsDone;
OperationMode m_opMode;