summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
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__*/