You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POSIX has a somewhat odd behavior that when you call
pthread_detach()[1], it is supposed to synchronously wake up anyone
currently joining the thread. That isn't a Zephyr kernel behavior[2],
so it needs to be exposed.
The implementation is as simple as it sounds. This is minimal: we
don't try to keep any state around to inform the k_thread_join() call
whether the thread actually exited or if this new function was used.
That has to be provided by the outer layers (pthreads already do
this).
[1] Which tells the OS/platform that it can clean the thread up as
soon as it exits and doesn't have to keep it around as a zombie until
someone calls pthread_join() on it.
[2] Because... why!? Not needing to keep a thread around for joiners
isn't the same thing as disallowing joins!
Signed-off-by: Andy Ross <[email protected]>
0 commit comments