Skip to content
Commit 17310108 authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

posix: pthread: do not assert in pthread_exit() on k_thread



If `pthread_exit()` is called from a `k_thread`, then we would
previously trigger an assertion. The problem with that, is that
is POSIX is acting as a compatibility layer.

Given that it is a reasonable expectation to have the calling
thread exit or abort when calling `pthread_exit()`, lets do just
that.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent ad8f3e5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment