diff options
Diffstat (limited to 'src/queue.h')
-rw-r--r-- | src/queue.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/queue.h b/src/queue.h index 1967c0c..de7b8ff 100644 --- a/src/queue.h +++ b/src/queue.h @@ -38,6 +38,10 @@ /* * $Log$ + * Revision 1.15 2005/05/16 16:00:57 deva + * + * Lots of stuff! + * * Revision 1.14 2005/05/07 10:25:34 deva * * Removed ffmpeg code from img_encoder and corrected decoding errors in mov_encoder @@ -84,7 +88,7 @@ public: void lock(); void unlock(); - void plength(); + int length(); private: volatile bool locked; @@ -235,12 +239,13 @@ T *Queue<T>::peek() * Print current length of queue */ template<typename T> -void Queue<T>::plength() +int Queue<T>::length() { + int length; pthread_mutex_lock(&mutex); - fprintf(stderr, "[ql: %d]", count); - fflush(stderr); + length = count; pthread_mutex_unlock(&mutex); + return length; } /** |