summaryrefslogtreecommitdiff
path: root/src/queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue.h')
-rw-r--r--src/queue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/queue.h b/src/queue.h
index 7352071..c9c0641 100644
--- a/src/queue.h
+++ b/src/queue.h
@@ -48,6 +48,8 @@ class Queue {
void push(T *t);
T *pop();
+ void plength();
+
private:
int limit;
buf_t *head;
@@ -57,6 +59,13 @@ class Queue {
};
template<typename T>
+Queue<T>::plength()
+{
+ fprintf(stderr, "[ql: %d]", count);
+ fflush(stderr);
+}
+
+template<typename T>
Queue<T>::Queue(int glimit)
{
limit = glimit;