Why does pthread_mutex_destroy check for an in-use mutex?

Florian Weimer fweimer@redhat.com
Wed Jul 1 07:56:01 GMT 2020


* Andreas Schwab:

> On Jul 01 2020, Florian Weimer via Libc-alpha wrote:
>
>> This check does not seem to be mandated by POSIX.  As far as I can see,
>> it is the only place where __nusers is actually used.
>
> Is __nusers actually updated in the elision path?

It's not.  That would be a bug if it actually mattered, right?

Thanks,
Florian



More information about the Libc-alpha mailing list