glibc 2.28 - Please commit ISO C threads support.

Message ID 7edab5b6-4e91-ed18-91b5-31218918622b@linaro.org
State Dropped
Headers

Commit Message

Adhemerval Zanella Netto July 24, 2018, 7:24 p.m. UTC
  On 24/07/2018 16:06, Carlos O'Donell wrote:
> On 07/24/2018 02:58 PM, Adhemerval Zanella wrote:
>>
>>
>> On 24/07/2018 15:52, Carlos O'Donell wrote:
>>> On 07/24/2018 01:25 PM, Adhemerval Zanella wrote:
>>>>
>>>>
>>>> On 24/07/2018 13:06, Carlos O'Donell wrote:
>>>>> Adhemerval,
>>>>>
>>>>> We are ready.
>>>>>
>>>>> Please commit ISO C threads support for 2.28.
>>>>>
>>>>> Cheers,
>>>>> Carlos.
>>>>>
>>>>
>>>> Thanks, I am just doing a final round of build and testing before
>>>> pushing it upstream.
>>>
>>> Thank you!
>>>
>>
>> Patches pushed upstream.
>>
> 
> Do we have a NEWS entry for this yet?
> 
> c.

Not yet, what about:
  

Comments

Carlos O'Donell July 24, 2018, 7:32 p.m. UTC | #1
> +* ISO C threads (ISO/IEC 9899:2011) has been added.  The implementation

* Support for ISO C threads...

> +  support all the standard functions provided by <threads.h>:

s/support/includes/g

> +
> +  - thrd_current, thrd_equal, thrd_sleep, thrd_yield, thrd_create,
> +    thrd_detach, thrd_exit, and thrd_join for thread managemen.

s/managemen/management/g

> +
> +  - mtx_init, mtx_lock, mtx_timedlock, mtx_trylock, mtx_unlock, and
> +    mtx_destroy for mutual exclusion.
> +
> +  - call_once for function call synchronization
> +
> +  - cnd_broadcast, cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and
> +    cnd_wait for conditional variables.
> +
> +  - tss_create, tss_delete, tss_get, and tss_set for thread-local storage.
> +
> +  It is requires new application to link against libpthread.

Application developers must link against libpthread to use ISO C threads.

> +
>  Deprecated and removed features, and other changes affecting compatibility:
>  
>  * The nonstandard header files <libio.h> and <_G_config.h> are no longer
> 

OK with those changes.

Cheers,
Carlos.
  

Patch

diff --git a/NEWS b/NEWS
index ed61fc5..b3bb0fc 100644
--- a/NEWS
+++ b/NEWS
@@ -94,6 +94,24 @@  Major new features:
   for safety are now load errors e.g. /foo/${ORIGIN}.so in DT_NEEDED
   results in a load failure now.
 
+* ISO C threads (ISO/IEC 9899:2011) has been added.  The implementation
+  support all the standard functions provided by <threads.h>:
+
+  - thrd_current, thrd_equal, thrd_sleep, thrd_yield, thrd_create,
+    thrd_detach, thrd_exit, and thrd_join for thread managemen.
+
+  - mtx_init, mtx_lock, mtx_timedlock, mtx_trylock, mtx_unlock, and
+    mtx_destroy for mutual exclusion.
+
+  - call_once for function call synchronization
+
+  - cnd_broadcast, cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and
+    cnd_wait for conditional variables.
+
+  - tss_create, tss_delete, tss_get, and tss_set for thread-local storage.
+
+  It is requires new application to link against libpthread.
+
 Deprecated and removed features, and other changes affecting compatibility:
 
 * The nonstandard header files <libio.h> and <_G_config.h> are no longer