uti: Fix condition for pthread_join of mcexec threads
Change-Id: Iaeee91c197b84436f84ce4380768aa79e7f9419e
This commit is contained in:
@ -1892,7 +1892,7 @@ join_all_threads()
|
|||||||
do {
|
do {
|
||||||
live_thread = 0;
|
live_thread = 0;
|
||||||
for (tp = thread_data; tp; tp = tp->next) {
|
for (tp = thread_data; tp; tp = tp->next) {
|
||||||
if (tp->joined && tp->detached)
|
if (tp->joined || tp->detached)
|
||||||
continue;
|
continue;
|
||||||
live_thread = 1;
|
live_thread = 1;
|
||||||
pthread_join(tp->thread_id, NULL);
|
pthread_join(tp->thread_id, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user