summaryrefslogtreecommitdiff
path: root/lib/threadsafe_queue_priority.h
diff options
context:
space:
mode:
authordeva <deva>2006-07-20 17:53:04 +0000
committerdeva <deva>2006-07-20 17:53:04 +0000
commitc8df40b62cf30029a4acd1a57c8c54add54dda9b (patch)
tree42d06a4d502c6e0fd0cdbf7f836fdaffd847efa5 /lib/threadsafe_queue_priority.h
parenta09f1b932560f11caf34a567ee226446a496a584 (diff)
Utilized the global info object.
Utilized the global info object.
Diffstat (limited to 'lib/threadsafe_queue_priority.h')
-rw-r--r--lib/threadsafe_queue_priority.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/threadsafe_queue_priority.h b/lib/threadsafe_queue_priority.h
index 8d3cdf1..a310271 100644
--- a/lib/threadsafe_queue_priority.h
+++ b/lib/threadsafe_queue_priority.h
@@ -35,8 +35,6 @@
#include <queue>
#include <functional>
-#include "info.h"
-
// Method for use, when comparing Frames in priority queue.
template <typename T>
struct priority : std::binary_function<T, T, bool> {
@@ -47,7 +45,7 @@ struct priority : std::binary_function<T, T, bool> {
class ThreadSafeQueuePriority: public ThreadSafeQueue< Frame* > {
public:
- ThreadSafeQueuePriority(Info *info, unsigned int framenumber = 0);
+ ThreadSafeQueuePriority(unsigned int framenumber = 0);
~ThreadSafeQueuePriority();
void push(Frame *frame);
@@ -55,8 +53,6 @@ public:
int size();
private:
- Info* info;
-
unsigned int framenumber;
std::priority_queue< Frame*, std::vector<Frame*>, priority<Frame*> > queue;
};