Move template parameter in Thread to a more logical scope location.

This commit is contained in:
Adam Ierymenko 2013-08-08 09:19:36 -04:00
parent 20f8668c28
commit 8a46452a70
10 changed files with 20 additions and 21 deletions

View file

@ -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)
{