new framework to inhibit thread cancellation when needed
authorRich Felker <dalias@aerifal.cx>
Tue, 5 Apr 2011 22:00:28 +0000 (18:00 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 5 Apr 2011 22:00:28 +0000 (18:00 -0400)
commit729cb49f52c825ac44f437e1ff0865d9f0b3626a
tree18db05e36f16fcdfc1147f4ba1ea19a0ee4bea9c
parent918a40f257328a2d7490829b54687cd38d7b787b
new framework to inhibit thread cancellation when needed

with these small changes, libc functions which need to call functions
which are cancellation points, but which themselves must not be
cancellation points, can use the CANCELPT_INHIBIT and CANCELPT_RESUME
macros to temporarily inhibit all cancellation.
src/internal/libc.h
src/thread/pthread_create.c
src/thread/pthread_setcancelstate.c