summaryrefslogtreecommitdiff
path: root/src/util/thread.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-12-03 23:32:03 +0100
committersapier <Sapier at GMX dot net>2013-12-15 13:39:42 +0100
commite9e9fd7c3f12bc5119b567ad37527d777859dbc0 (patch)
treecc3eb08bf696444ae6bea4a0cfe2cf29f66b56be /src/util/thread.h
parent977232261388fa80bd6ab3bb849ae4d7a8ade73e (diff)
downloadminetest-e9e9fd7c3f12bc5119b567ad37527d777859dbc0.tar.gz
minetest-e9e9fd7c3f12bc5119b567ad37527d777859dbc0.tar.bz2
minetest-e9e9fd7c3f12bc5119b567ad37527d777859dbc0.zip
Replace SimpleThread by JThread now implementing same features
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
{