summaryrefslogtreecommitdiff
path: root/src/queue.h
diff options
context:
space:
mode:
authordeva <deva>2005-05-16 16:00:56 +0000
committerdeva <deva>2005-05-16 16:00:56 +0000
commit856ab0ece3e73e2b520d55aeab9adfbccdb6aa93 (patch)
tree3f1149e90e5a9c88c6f22a6f8e39cfc02fdf6e67 /src/queue.h
parent3b5893ffa6d4a761eff0d97c7223eecd4fc123c9 (diff)
Lots of stuff!
Diffstat (limited to 'src/queue.h')
-rw-r--r--src/queue.h13
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;
}
/**