1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/posix/pthread
René Kijewski b54962689a posix: Add pthread_cleanup handlers
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
2014-04-04 18:03:29 +02:00
..
include posix: Add pthread_cleanup handlers 2014-04-04 18:03:29 +02:00
Makefile Add include paths automatocally for USEMODULES 2014-03-29 16:27:55 +01:00
pthread_attr.c pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_mutex.c pthread: mutex - return the right values 2014-03-03 13:29:28 +01:00
pthread_once.c pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_spin.c pthread: initial add 2014-02-19 23:39:38 +01:00
pthread.c posix: Add pthread_cleanup handlers 2014-04-04 18:03:29 +02:00