diff options
Diffstat (limited to 'dep/efsw/src/efsw/Thread.cpp')
| -rw-r--r-- | dep/efsw/src/efsw/Thread.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/dep/efsw/src/efsw/Thread.cpp b/dep/efsw/src/efsw/Thread.cpp deleted file mode 100644 index cfa88b482d3..00000000000 --- a/dep/efsw/src/efsw/Thread.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include <efsw/Thread.hpp> -#include <efsw/platform/platformimpl.hpp> - -namespace efsw { - -Thread::Thread() : mThreadImpl( NULL ), mEntryPoint( NULL ) {} - -Thread::~Thread() { - wait(); - - efSAFE_DELETE( mEntryPoint ); -} - -void Thread::launch() { - wait(); - - mThreadImpl = new Platform::ThreadImpl( this ); -} - -void Thread::wait() { - if ( mThreadImpl ) { - mThreadImpl->wait(); - - efSAFE_DELETE( mThreadImpl ); - } -} - -void Thread::terminate() { - if ( mThreadImpl ) { - mThreadImpl->terminate(); - - efSAFE_DELETE( mThreadImpl ); - } -} - -void Thread::run() { - if ( mEntryPoint ) - mEntryPoint->run(); -} - -} // namespace efsw |
