summaryrefslogtreecommitdiff
path: root/src/timer.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-03 11:46:05 +0000
committerDana Jansens <danakj@orodu.net>2002-11-03 11:46:05 +0000
commitace8c8896aa13a6fc4e489277cf9c96f49175322 (patch)
tree69748320de56b6c0c1fccdefc768b2b12ab012b7 /src/timer.hh
parent37e56007680a6664967e0e71ac52981654def6a6 (diff)
WE DONT USE BASE DISPLAY FOR ANYTHING ANY MORE!!@^!*@*!! YAY
Diffstat (limited to 'src/timer.hh')
-rw-r--r--src/timer.hh12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/timer.hh b/src/timer.hh
index b022b0c4..121dfbc9 100644
--- a/src/timer.hh
+++ b/src/timer.hh
@@ -15,6 +15,12 @@ extern "C" {
#endif // TIME_WITH_SYS_TIME
}
+#include <queue>
+#include <algorithm>
+#include <vector>
+
+namespace ob {
+
// forward declaration
class TimerQueueManager;
@@ -64,9 +70,6 @@ public:
};
-#include <queue>
-#include <algorithm>
-
template <class _Tp, class _Sequence, class _Compare>
class _timer_queue: protected std::priority_queue<_Tp, _Sequence, _Compare> {
public:
@@ -97,7 +100,6 @@ struct TimerLessThan {
}
};
-#include <vector>
typedef _timer_queue<BTimer*, std::vector<BTimer*>, TimerLessThan> TimerQueue;
class TimerQueueManager {
@@ -106,4 +108,6 @@ public:
virtual void removeTimer(BTimer* timer) = 0;
};
+}
+
#endif // _BLACKBOX_Timer_hh