From 8659b61d462dd64b6278f2d6470832f46821cfd5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 18 May 2009 22:47:43 +0200 Subject: fix 'thread recovery' race with sync() by not abusing m_state. --- lib/base/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/base/thread.h') 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; -- cgit v1.2.3