*/
virtual T pop() = 0;
+ /**
+ * Query the size of the queue
+ *
+ * @return size_t size of queue.
+ */
+ virtual size_t size() = 0;
+
protected:
/**
*
this->fifo.pop();
return item;
}
+
+ /**
+ * Query the size of the queue
+ *
+ * @return size_t size of queue.
+ */
+ virtual size_t size() {
+ SGGuard<SGLOCK> g(mutex);
+ return this->fifo.size();
+ }
+
private:
/**
return item;
}
+ /**
+ * Query the size of the queue
+ *
+ * @return size_t size of queue.
+ */
+ virtual size_t size() {
+ SGGuard<SGMutex> g(mutex);
+ return this->fifo.size();
+ }
+
private:
/**