revert 22e89cf
This commit is contained in:
@@ -33,9 +33,9 @@ void* Thread::runThread(void* arg) {
|
|||||||
Thread::~Thread() {
|
Thread::~Thread() {
|
||||||
if (m_started) {
|
if (m_started) {
|
||||||
pthread_cancel(m_threadid);
|
pthread_cancel(m_threadid);
|
||||||
}
|
|
||||||
pthread_detach(m_threadid);
|
pthread_detach(m_threadid);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool Thread::start(const char* name) {
|
bool Thread::start(const char* name) {
|
||||||
int result = pthread_create(&m_threadid, NULL, runThread, this);
|
int result = pthread_create(&m_threadid, NULL, runThread, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user