[PATCH glibc 8/9] support: implement xpthread key create/delete (v4)

Mathieu Desnoyers mathieu.desnoyers@efficios.com
Mon Apr 27 17:30:53 GMT 2020


----- On Apr 27, 2020, at 1:00 PM, Florian Weimer fw@deneb.enyo.de wrote:

> * Mathieu Desnoyers:
> 
>> ----- On Apr 27, 2020, at 11:23 AM, Florian Weimer fw@deneb.enyo.de wrote:
>>
>>> * Mathieu Desnoyers via Libc-alpha:
>>> 
>>>> ----- On Apr 27, 2020, at 5:17 AM, Florian Weimer fw@deneb.enyo.de wrote:
>>>>
>>>>> * Mathieu Desnoyers via Libc-alpha:
>>>>> 
>>>>>> diff --git a/support/xthread.h b/support/xthread.h
>>>>>> index d350d1506d..2a519874bf 100644
>>>>>> --- a/support/xthread.h
>>>>>> +++ b/support/xthread.h
>>>>>> @@ -95,6 +95,8 @@ void xpthread_rwlock_wrlock (pthread_rwlock_t *rwlock);
>>>>>>  void xpthread_rwlock_rdlock (pthread_rwlock_t *rwlock);
>>>>>>  void xpthread_rwlock_unlock (pthread_rwlock_t *rwlock);
>>>>>>  void xpthread_rwlock_destroy (pthread_rwlock_t *rwlock);
>>>>>> +void xpthread_key_create (pthread_key_t *key, void (*destr_function) (void *));
>>>>>> +void xpthread_key_delete (pthread_key_t key);
>>>>> 
>>>>> I think xpthread_key_create should return the pthread_key_t result
>>>>> directly.  It's similar to what we did for xpthread_create.
>>>>
>>>> Good point, done.
>>> 
>>> If you post a new patch, we can install it right now.
>>
>> I expect I'll be able to do a new round of post (including this patch)
>> later today.
> 
> Please submit it separately, so that we can commit it and remove it
> from the series.

OK, now sent,

Thanks,

Mathieu


-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the Libc-alpha mailing list