simplified
This commit is contained in:
@@ -34,8 +34,6 @@ Thread::~Thread()
|
|||||||
{
|
{
|
||||||
if (m_started) {
|
if (m_started) {
|
||||||
pthread_detach(m_threadid);
|
pthread_detach(m_threadid);
|
||||||
}
|
|
||||||
if (m_started) {
|
|
||||||
pthread_cancel(m_threadid);
|
pthread_cancel(m_threadid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user