mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 17:17:42 +03:00
Small fix in Win32 ThreadImpl.
This commit is contained in:
@@ -17,6 +17,13 @@ ThreadImpl::ThreadImpl( Thread * owner ) {
|
||||
std::cerr << "Failed to create thread" << std::endl;
|
||||
}
|
||||
|
||||
ThreadImpl::~ThreadImpl()
|
||||
{
|
||||
if ( mThread ) {
|
||||
CloseHandle( mThread );
|
||||
}
|
||||
}
|
||||
|
||||
void ThreadImpl::Wait() {
|
||||
if ( mThread ) { // Wait for the thread to finish, no timeout
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ class ThreadImpl {
|
||||
static UintPtr GetCurrentThreadId();
|
||||
|
||||
ThreadImpl( Thread * owner );
|
||||
|
||||
~ThreadImpl();
|
||||
|
||||
void Wait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user