projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
acb231d
)
Merge remote-tracking branch 'origin/bug_749_ethread_bugfix'
author
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 6 Sep 2011 13:16:48 +0000
(15:16 +0200)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 6 Sep 2011 13:16:48 +0000
(15:16 +0200)
lib/base/thread.cpp
patch
|
blob
|
history
diff --git
a/lib/base/thread.cpp
b/lib/base/thread.cpp
index
fa923de
..
1fda6a4
100644
(file)
--- a/
lib/base/thread.cpp
+++ b/
lib/base/thread.cpp
@@
-58,7
+58,12
@@
int eThread::runAsync(int prio, int policy)
pthread_attr_setschedpolicy(&attr, policy);
pthread_attr_setschedparam(&attr, &p);
}
-
+
+ if (the_thread) {
+ eDebug("old thread joined %d", pthread_join(the_thread, 0));
+ the_thread = 0;
+ }
+
if (pthread_create(&the_thread, &attr, wrapper, this))
{
pthread_attr_destroy(&attr);
@@
-69,7
+74,7
@@
int eThread::runAsync(int prio, int policy)
pthread_attr_destroy(&attr);
return 0;
-}
+}
int eThread::run(int prio, int policy)
{