Added getNumOperationsInQueue() method

This commit is contained in:
Robert Osfield
2008-01-18 09:17:32 +00:00
parent bb7ba24f59
commit 276fd99da9

View File

@@ -106,6 +106,9 @@ class OSG_EXPORT OperationQueue : public Referenced
/** Return true if the operation queue is 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
* executed by the operation thread once this operation gets to the head of the queue.*/