Questions regarding pthread mutex lock/unlock functions in pthread_cond_wait?

Yann Droneaud ydroneaud@opteya.com
Thu Jun 2 09:07:56 GMT 2022


Le 26/05/2022 à 18:31, Florian Weimer via Libc-alpha a écrit :
> * Noah Goldstein:
>
>> Either work, but obviously easier to just do mutex. Think less
>> interest/performance is focussed on condition variables.
>>
>> Is your feeling since it's doable now with a little extra work is not
>> worth the perf hit for normal users?
> I think it creates an expectation about interface compatibility that
> might not hold in the future.  Interposing all synchronization
> interfaces at the same time seems more future-proof.


pthread_rwlock, pthread_barrier, and pthread_once too even if they don't 
use a pthread_mutex ?


Regards.

-- 

Yann Droneaud

OPTEYA




More information about the Libc-alpha mailing list