doc: add k_thread_join() to documentation
Added to the section covering thread termination. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
dc7ac32a94
commit
806c8af660
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,12 @@ prior to returning, since the kernel does *not* reclaim them automatically.
|
|||
The kernel does not currently make any claims regarding an application's
|
||||
ability to respawn a thread that terminates.
|
||||
|
||||
In some cases a thread may want to sleep until another thread terminates.
|
||||
This can be accomplished with the :cpp:func:`k_thread_join()` API. This
|
||||
will block the calling thread until either the timeout expires, the target
|
||||
thread self-exits, or the target thread aborts (either due to a
|
||||
k_thread_abort() call or triggering a fatal error).
|
||||
|
||||
Thread Aborting
|
||||
===============
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue