aboutsummaryrefslogtreecommitdiff
path: root/lib/base/thread.h
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-05-18 22:47:43 +0200
committerFelix Domke <tmbinc@elitedvb.net>2009-05-18 22:47:43 +0200
commit8659b61d462dd64b6278f2d6470832f46821cfd5 (patch)
tree995bc9bc294ed75ec6ce6a664be3acd3e134b2db /lib/base/thread.h
parentaf91ffbe45ff61ff09761d85dea1e0a17e0309ff (diff)
downloadenigma2-8659b61d462dd64b6278f2d6470832f46821cfd5.tar.gz
enigma2-8659b61d462dd64b6278f2d6470832f46821cfd5.zip
fix 'thread recovery' race with sync() by not abusing m_state.
Diffstat (limited to 'lib/base/thread.h')
-rw-r--r--lib/base/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base/thread.h b/lib/base/thread.h
index 12c5b25c..8ee96594 100644
--- a/lib/base/thread.h
+++ b/lib/base/thread.h
@@ -59,7 +59,7 @@ private:
pthread_t the_thread;
static void *wrapper(void *ptr);
- int m_alive;
+ int m_alive, m_started;
static void thread_completed(void *p);
eSemaphore m_state;