1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/posix/pthread/include
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
..
pthread_attr.h pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_barrier.h pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_cond.h pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_mutex.h pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_rwlock.h pthread: initial add 2014-02-19 23:39:38 +01:00
pthread_spin.h pthread: initial add 2014-02-19 23:39:38 +01:00
pthread.h posix: Add pthread_cleanup handlers 2014-04-04 18:03:29 +02:00
pthreadtypes.h posix: Add pthread_cleanup handlers 2014-04-04 18:03:29 +02:00