diff --git a/include/osg/OperationThread b/include/osg/OperationThread index 768eabfc8..8ec9b8cbc 100644 --- a/include/osg/OperationThread +++ b/include/osg/OperationThread @@ -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.*/