Skip to content

Commit cd264e5

Browse files
author
Christopher Friedt
committed
Revert "posix: pthread: consider PTHREAD_EXITED state in pthread_create"
This reverts commit da0398d. Signed-off-by: Christopher Friedt <[email protected]>
1 parent d01780f commit cd264e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/posix/pthread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int pthread_create(pthread_t *newthread, const pthread_attr_t *_attr,
177177
for (pthread_num = 0;
178178
pthread_num < CONFIG_MAX_PTHREAD_COUNT; pthread_num++) {
179179
thread = &posix_thread_pool[pthread_num];
180-
if (thread->state == PTHREAD_EXITED || thread->state == PTHREAD_TERMINATED) {
180+
if (thread->state == PTHREAD_TERMINATED) {
181181
thread->state = PTHREAD_JOINABLE;
182182
break;
183183
}

0 commit comments

Comments
 (0)