Added getNumOperationsInQueue() method
This commit is contained in:
@@ -107,6 +107,9 @@ class OSG_EXPORT OperationQueue : public Referenced
|
|||||||
/** Return true if the operation queue is empty. */
|
/** Return true if the operation queue is empty. */
|
||||||
bool empty() const { return _operations.empty(); }
|
bool empty() const { return _operations.empty(); }
|
||||||
|
|
||||||
|
/** Return the num of pending operations that are sitting in the OperationQueue.*/
|
||||||
|
unsigned int getNumOperationsInQueue() const { return _operations.size(); }
|
||||||
|
|
||||||
/** Add operation to end of OperationQueue, this will be
|
/** Add operation to end of OperationQueue, this will be
|
||||||
* executed by the operation thread once this operation gets to the head of the queue.*/
|
* executed by the operation thread once this operation gets to the head of the queue.*/
|
||||||
void add(Operation* operation);
|
void add(Operation* operation);
|
||||||
|
|||||||
Reference in New Issue
Block a user