summaryrefslogtreecommitdiff
path: root/src/util/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/thread.h')
-rw-r--r--src/util/thread.h44
1 files changed, 0 insertions, 44 deletions
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
@@ -60,52 +60,8 @@ private:
};
/*
- 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<typename Key, typename T, typename Caller, typename CallerData>
class GetResult
{