git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8deb694
)
more debug
author
Felix Domke
<tmbinc@elitedvb.net>
Fri, 24 Apr 2009 00:39:58 +0000
(
02:39
+0200)
committer
Felix Domke
<tmbinc@elitedvb.net>
Fri, 24 Apr 2009 00:39:58 +0000
(
02:39
+0200)
lib/base/thread.cpp
patch
|
blob
|
history
diff --git
a/lib/base/thread.cpp
b/lib/base/thread.cpp
index db6deb3585023c8a5fd0b6900af1177d19d326ad..56467597bd268ca0ae79597d425c9297d40c3931 100644
(file)
--- 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. */