diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-04-30 15:57:38 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:16:45 +0300 |
commit | b946b0df22294a82ff6e1f09d37e2ac3c90436aa (patch) | |
tree | 23f5f54bf6267c46ecf1b41a0c7569eae6fc86fd /base/thread.hpp | |
parent | cdb626b5a2a09d73fab369c29b2daf3eab0b0f0e (diff) |
Removed unnecessary shared_ptr from thread class
Diffstat (limited to 'base/thread.hpp')
-rw-r--r-- | base/thread.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/base/thread.hpp b/base/thread.hpp index 06785c87c9..68801e2fd9 100644 --- a/base/thread.hpp +++ b/base/thread.hpp @@ -1,7 +1,5 @@ #pragma once -#include "../std/shared_ptr.hpp" - namespace threads { class IRoutine @@ -24,11 +22,15 @@ namespace threads /// wrapper for Create and Terminate threads API class Thread { - shared_ptr<ThreadImpl> m_impl; - shared_ptr<IRoutine> m_routine; + ThreadImpl * m_impl; + IRoutine * m_routine; + + Thread(Thread const &); + Thread & operator=(Thread const &); public: Thread(); + ~Thread(); /// Run thread immediately /// @param pRoutine is owned by Thread class |