bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ISO C 11 threads implementation


From: Bruno Haible
Subject: Re: [PATCH] ISO C 11 threads implementation
Date: Thu, 20 Jun 2019 19:50:14 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; )

Hi Paul,

> Thanks for implementing all this. Do you have an example of a package 
> that uses this Gnulib module?

There probably are not many packages that use <threads.h> so far, because
even glibc did not have it until recently (2018-08-01).

And surely no packages use the Gnulib module so far, since I added it just
today :)

> I'm asking partly because I wonder whether coreutils, GNU Emacs, etc.
> would benefit from it 

It depends on whether these packages
  - are compiled and used on native Windows as well,
  - and if so, whether the mingw pthreads are considered unsatisfying
    or whether the use of the MSVC compiler is a requirement.

You can go a long way with <pthread.h>. I expect that <threads.h> will,
in the near future, only be important
  - for portability to Windows,
  - for new operating systems, especially small ones,
  - for education in academics,
  - for implementing C++ threads [1].

> and I'd like to see how others use it.

The use of <threads.h> is very similar to the use of <pthread.h>.

Bruno

[1] https://en.cppreference.com/w/cpp/thread




reply via email to

[Prev in Thread] Current Thread [Next in Thread]