From e0592745a40dae2e14e5b6d9226f41a293ababc9 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 16 Jun 2005 21:28:57 +0000 Subject: Rewrote thread object Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to growing server queue) --- src/thread.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src/thread.h') 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__*/ -- cgit v1.2.3