From e9e9fd7c3f12bc5119b567ad37527d777859dbc0 Mon Sep 17 00:00:00 2001 From: sapier Date: Tue, 3 Dec 2013 23:32:03 +0100 Subject: Replace SimpleThread by JThread now implementing same features --- src/util/thread.h | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'src/util') diff --git a/src/util/thread.h b/src/util/thread.h index 3f5ef1199..bb8e03317 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -59,53 +59,9 @@ private: JMutex m_mutex; }; -/* - A base class for simple background thread implementation -*/ - -class SimpleThread : public JThread -{ - bool run; - JMutex run_mutex; - -public: - - SimpleThread(): - JThread(), - run(true) - { - } - - virtual ~SimpleThread() - {} - - virtual void * Thread() = 0; - - bool getRun() - { - JMutexAutoLock lock(run_mutex); - return run; - } - void setRun(bool a_run) - { - JMutexAutoLock lock(run_mutex); - run = a_run; - } - - void stop() - { - setRun(false); - while(IsRunning()) - sleep_ms(100); - } -}; - /* A single worker thread - multiple client threads queue framework. */ - - - template class GetResult { -- cgit v1.2.3