diff --git a/src/util/bdthreads.cc b/src/util/bdthreads.cc index 2f008cc..b479242 100644 --- a/src/util/bdthreads.cc +++ b/src/util/bdthreads.cc @@ -64,6 +64,15 @@ pthread_t createThread(bdThread &thread) } +bdThread::bdThread() +{ +#if defined(_WIN32) || defined(__MINGW32__) + memset (&mTid, 0, sizeof(mTid)); +#else + mTid = 0; +#endif +} + void bdThread::join() /* waits for the the mTid thread to stop */ { void *ptr; diff --git a/src/util/bdthreads.h b/src/util/bdthreads.h index ea4a243..a64ea6f 100644 --- a/src/util/bdthreads.h +++ b/src/util/bdthreads.h @@ -65,14 +65,7 @@ pthread_t createThread(bdThread &thread); class bdThread { public: - bdThread() - { -#if defined(_WIN32) || defined(__MINGW32__) - memset (&mTid, 0, sizeof(mTid)); -#else - mTid = 0; -#endif - } + bdThread(); virtual ~bdThread() { return; } virtual void start() { createThread(*this); }