This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Avoinding calls to __libc_enable_asynccancel
- From: Frederik Deweerdt <frederik dot deweerdt at xprog dot eu>
- To: libc-help at sourceware dot org
- Date: Thu, 28 Oct 2010 15:49:43 +0200
- Subject: Avoinding calls to __libc_enable_asynccancel
Hi all,
I was surprised that in spite of the current thread not being cancellable:
ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
calls to __libc_{en,dis}able_asynccancel are issued.
What makes those calls mandatory even when the current thread is not
cancelable?
Thanks,
Frederik