summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authordeva <deva>2005-06-16 21:28:57 +0000
committerdeva <deva>2005-06-16 21:28:57 +0000
commite0592745a40dae2e14e5b6d9226f41a293ababc9 (patch)
treeb3640c07fd6af71aa01bed384613ffda6c03bf41 /src/thread.h
parentc397f2dcdc399b43cf150f8000e711fc20613deb (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/thread.h')
-rw-r--r--src/thread.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/thread.h b/src/thread.h
index 8f7bd41..b7f3f98 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -31,6 +31,11 @@
/*
* $Log$
+ * Revision 1.4 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.3 2005/05/03 08:31:59 deva
* Removed the error object, and replaced it with a more generic info object.
*
@@ -48,11 +53,15 @@
class Thread {
public:
- Thread() {}
- virtual ~Thread() {}
- virtual void run() = 0;
-};
+ Thread();
+ virtual ~Thread();
+
+ void run();
-void* thread_run(void *data);
+ virtual void thread_main() = 0;
+
+private:
+ pthread_t tid;
+};
#endif/*__THREAD_H__*/