Skip to content

Commit db23634

Browse files
Merge pull request #125 from shintaro-iwasaki/FixThreadFreeMany
thread: fix a bug in ABT_thread_free_many
2 parents 58e57e6 + 0a60aee commit db23634

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/thread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ int ABT_thread_free_many(int num, ABT_thread *thread_list)
346346

347347
for (i = 0; i < num; i++) {
348348
ABTI_thread *p_thread = ABTI_thread_get_ptr(thread_list[i]);
349+
ABTI_thread_join(&p_local, p_thread);
349350
ABTI_thread_free(p_local, p_thread);
350351
}
351352
return ABT_SUCCESS;

0 commit comments

Comments
 (0)