class CYCData: findData() added; various cleanup
This commit is contained in:
@@ -24,8 +24,6 @@ static void* runThread(void* arg)
|
||||
return ((Thread *)arg)->run();
|
||||
}
|
||||
|
||||
Thread::Thread() : m_threadid(0), m_running(false), m_detached(false) {}
|
||||
|
||||
Thread::~Thread()
|
||||
{
|
||||
if (m_running == true && m_detached == false)
|
||||
@@ -78,7 +76,3 @@ int Thread::detach()
|
||||
return result;
|
||||
}
|
||||
|
||||
pthread_t Thread::self()
|
||||
{
|
||||
return m_threadid;
|
||||
}
|
||||
|
||||
+2
-2
@@ -26,13 +26,13 @@ class Thread
|
||||
{
|
||||
|
||||
public:
|
||||
Thread();
|
||||
Thread() : m_threadid(0), m_running(false), m_detached(false) {}
|
||||
virtual ~Thread();
|
||||
|
||||
int start(const char* name);
|
||||
int join();
|
||||
int detach();
|
||||
pthread_t self();
|
||||
pthread_t self() {return m_threadid; }
|
||||
|
||||
virtual void* run() = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user