mirror of
https://github.com/RetroShare/BitDHT.git
synced 2026-09-12 19:50:02 +05:00
Moved constructor of class bdThread from bdThreads.h to bdThreads.cc.
Initialized member mTid of class RsThread too. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3338 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c878efcef1
commit
d0b3a00990
@ -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;
|
||||
|
||||
@ -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); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user