From 8a46452a700fa5a8d6fc3bd9308bf483cd715de1 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 8 Aug 2013 09:19:36 -0400 Subject: Move template parameter in Thread to a more logical scope location. --- node/Thread.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'node/Thread.hpp') 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 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 static inline Thread start(C *instance) throw(std::runtime_error) { -- cgit v1.2.3