mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
b54962689a
With `pthread_cleanup_(push|pop)` you can define a function that should be ran if the thread is exited while it is inside this scope. A thread can be ended here through an explicit call to `pthread_exit()`, or if cancellation was requested and a cancellation point was hit. `pthread_cleanup_*` is mostly only useful together with cancellation points, and cancellation points are only useful with a cleanup functionality. Cancellation points are at least partially implemented by means of `pthread_testcancel()`. C.f. ["Cancellation Points"][1]. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_05_02 |
||
---|---|---|
.. | ||
auto_init | ||
bloom | ||
config | ||
crypto | ||
hashes | ||
include | ||
lib | ||
net | ||
ping | ||
posix | ||
ps | ||
quad_math | ||
random | ||
shell | ||
timex | ||
transceiver | ||
uart0 | ||
vtimer | ||
chardev_thread.c | ||
doc.txt | ||
Makefile | ||
Makefile.include |