aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-04 02:05:12 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-04 02:05:12 +0300
commit2f466726e6e8c318d3277eff6d987197c13e8bd3 (patch)
tree89f611198b6ccf2c0175af9541b3afebb328f48b /src/utility.h
parente0f7bd4d57bf0c9b497c4d0bb73f7bd4d5cc0643 (diff)
downloadminetest-2f466726e6e8c318d3277eff6d987197c13e8bd3.tar.gz
minetest-2f466726e6e8c318d3277eff6d987197c13e8bd3.tar.bz2
minetest-2f466726e6e8c318d3277eff6d987197c13e8bd3.zip
Made a proper queued thread to client for handling some block mesh updates. Also made client mutex-free to allow easier adding of new stuff.
Diffstat (limited to 'src/utility.h')
-rw-r--r--src/utility.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/utility.h b/src/utility.h
index 89c5f9981..3640b4b51 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -1467,6 +1467,10 @@ protected:
core::list<T> m_list;
};
+/*
+ A single worker thread - multiple client threads queue framework.
+*/
+
template<typename Caller, typename Data>
class CallerInfo
{
@@ -1516,11 +1520,6 @@ public:
core::list<CallerInfo<Caller, CallerData> > callers;
};
-/*
- Quickhands for typical request-result queues.
- Used for distributing work between threads.
-*/
-
template<typename Key, typename T, typename Caller, typename CallerData>
class RequestQueue
{