changed code style

This commit is contained in:
john30
2015-02-21 13:18:36 +01:00
parent 0bfc63c13a
commit 41cd38ab75
20 changed files with 218 additions and 217 deletions
+5 -4
View File
@@ -32,11 +32,12 @@ void* Thread::runThread(void* arg)
Thread::~Thread()
{
if (m_started == true)
if (m_started) {
pthread_detach(m_threadid);
if (m_started == true)
}
if (m_started) {
pthread_cancel(m_threadid);
}
}
bool Thread::start(const char* name)
@@ -62,7 +63,7 @@ bool Thread::join()
{
int result = -1;
if (m_started == true) {
if (m_started) {
m_stopped = true;
result = pthread_join(m_threadid, NULL);