This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]