diff options
author | deva <deva> | 2005-06-16 21:28:57 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-16 21:28:57 +0000 |
commit | e0592745a40dae2e14e5b6d9226f41a293ababc9 (patch) | |
tree | b3640c07fd6af71aa01bed384613ffda6c03bf41 /src/frame.h | |
parent | c397f2dcdc399b43cf150f8000e711fc20613deb (diff) |
Rewrote thread object
Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to
growing server queue)
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/frame.h b/src/frame.h index 8734924..3300fff 100644 --- a/src/frame.h +++ b/src/frame.h @@ -31,6 +31,11 @@ /* * $Log$ + * Revision 1.8 2005/06/16 21:28:57 deva + * Rewrote thread object + * Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to + * growing server queue) + * * Revision 1.7 2005/05/25 13:11:42 deva * * Made unfreeze close connection, when no recording is done. @@ -63,13 +68,6 @@ public: Frame(unsigned char *d, int sz); ~Frame(); - /* - // Smaller frame number is higher priority - bool operator<(const Frame& f) const { - return number > f.number; - } - */ - unsigned char *data; int size; @@ -82,6 +80,7 @@ public: #include <functional> +// Method for use, when comparing Frames in priority queue. template <typename T> struct frame_priority : std::binary_function<T, T, bool> { bool operator() (const T& a, const T& b) const { |