From 276fd99da9e2bc0995dad4e0616ca0fd4c1db5fd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Jan 2008 09:17:32 +0000 Subject: [PATCH] Added getNumOperationsInQueue() method --- include/osg/OperationThread | 3 +++ 1 file changed, 3 insertions(+) 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.*/