summaryrefslogtreecommitdiff
path: root/src/thread/cancellation.c
AgeCommit message (Collapse)AuthorLines
2011-08-03further debloat cancellation handlersRich Felker-14/+4
cleanup push and pop are also no-ops if pthread_exit is not reachable. this can make a big difference for library code which needs to protect itself against cancellation, but which is unlikely to actually be used in programs with threads/cancellation.
2011-08-03fix static linking dependency bloat with cancellationRich Felker-0/+12
previously, pthread_cleanup_push/pop were pulling in all of pthread_create due to dependency on the __pthread_unwind_next function. this was not needed, as cancellation cleanup handlers can never be called unless pthread_exit or pthread_cancel is reachable.
2011-03-25match glibc/lsb cancellation abi on i386Rich Felker-0/+7
glibc made the ridiculous choice to use pass-by-register calling convention for these functions, which is impossible to duplicate directly on non-gcc compilers. instead, we use ugly asm to wrap and convert the calling convention. presumably this works with every compiler anyone could potentially want to use.
2011-02-13reorganize thread exit code, make pthread_exit call cancellation handlers (pt2)Rich Felker-9/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+22