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