This is the mail archive of the libc-alpha@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]

Re: [PATCH] nptl: Remove cancellation checks from sem_{timed}wait (BZ #23006)


* Adhemerval Zanella:

> The Austin group has decided that sem_wait and sem_timedwait do not need to
> be cancellation points.  This patch removes the cancellation checks in order
> to improve performance.
>
> As for comment #2 in BZ#23006, the old implementation which explicit check
> for cancellation is moved to a compat symbol.

The code nptl/sem_waitcommon.c still acts on a cancellation request, I
think.  The only change is that if we do not wait at all, we do not act
on the cancellation.  I don't think this matches the POSIX semantics,
where cancellation points are either there or not, and do not depend on
function implementation details.

Thanks,
Florian


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