aboutsummaryrefslogtreecommitdiff
path: root/lib/base/thread.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-04-24 12:03:28 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-04-24 12:03:28 +0200
commit019ba406ed5ba46782951d501ed2d4c0a96e6096 (patch)
tree58c85bf4801a62c27a30d4366d9e45e81ba5bd98 /lib/base/thread.cpp
parent8188ccaebf3b9c51ef2916cb7e69ef954291392f (diff)
parent056af5306995176e457ddd471aa2b5c3a5223c4f (diff)
downloadenigma2-019ba406ed5ba46782951d501ed2d4c0a96e6096.tar.gz
enigma2-019ba406ed5ba46782951d501ed2d4c0a96e6096.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/base/thread.cpp')
-rw-r--r--lib/base/thread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base/thread.cpp b/lib/base/thread.cpp
index db6deb35..56467597 100644
--- a/lib/base/thread.cpp
+++ b/lib/base/thread.cpp
@@ -90,6 +90,8 @@ int eThread::sync(void)
int res;
m_state.down(); /* this might block */
res = m_alive;
+ if (m_state.value() != 0)
+ eFatal("eThread::sync: m_state.value() == %d", m_state.value());
ASSERT(m_state.value() == 0);
m_state.up();
return res; /* 0: thread is guaranteed not to run. 1: state unknown. */