summaryrefslogtreecommitdiff
path: root/node/Thread.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-08 09:19:36 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-08 09:19:36 -0400
commit8a46452a700fa5a8d6fc3bd9308bf483cd715de1 (patch)
treeef548e9fb3b2f715fed9f765120a4cc00c0a7abb /node/Thread.hpp
parent20f8668c286b2991f5eb1984dde6a8a76434d12d (diff)
downloadinfinitytier-8a46452a700fa5a8d6fc3bd9308bf483cd715de1.tar.gz
infinitytier-8a46452a700fa5a8d6fc3bd9308bf483cd715de1.zip
Move template parameter in Thread to a more logical scope location.
Diffstat (limited to 'node/Thread.hpp')
-rw-r--r--node/Thread.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/node/Thread.hpp b/node/Thread.hpp
index 444da2be..ea75297a 100644
--- a/node/Thread.hpp
+++ b/node/Thread.hpp
@@ -57,11 +57,8 @@ static void *___zt_threadMain(void *instance)
}
/**
- * A thread of a given class type
- *
- * @tparam C Class using Thread
+ * A thread identifier, and static methods to start and join threads
*/
-template<typename C>
class Thread
{
public:
@@ -90,7 +87,9 @@ public:
* @param instance Instance whose threadMain() method gets called by new thread
* @return Thread identifier
* @throws std::runtime_error Unable to create thread
+ * @tparam C Class containing threadMain()
*/
+ template<typename C>
static inline Thread start(C *instance)
throw(std::runtime_error)
{