class CYCData: findData() added; various cleanup

This commit is contained in:
Roland Jax
2014-04-18 19:45:05 +02:00
parent fdc52ee122
commit e9a4721c8f
7 changed files with 74 additions and 31 deletions
-6
View File
@@ -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
View File
@@ -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;