diff options
author | deva <deva> | 2005-04-26 10:17:04 +0000 |
---|---|---|
committer | deva <deva> | 2005-04-26 10:17:04 +0000 |
commit | 617a90f67fe2f768fa0ce7002623e43581865837 (patch) | |
tree | 8a6be27dc165b9a4aa9d923b8d504e541deb605b /src/queue.h | |
parent | 0ffc2529d674a71a794effaa0975364c219f9115 (diff) |
*** empty log message ***
Diffstat (limited to 'src/queue.h')
-rw-r--r-- | src/queue.h | 9 |
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; |