[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: |
Mon, 01 Jul 2019 04:46:31 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-151-generic; KDE/5.18.0; x86_64; ; ) |
Hi Paul,
I wrote:
> You can go a long way with <pthread.h>. ...
> The use of <threads.h> is very similar to the use of <pthread.h>.
In fact, it should be possible to reuse the bulk of the <threads.h>
and gnulib 'threads'/'lock'/... modules to provide an implementation
of the essential <pthread.h> API on native Windows (both mingw and MSVC).
Whereas currently, these functions are stubs in gnulib's <pthread.h>.
With this, we would have the essential pthread_* functions implemented
on all reasonable portability targets, except Minix. (*) Programs
like coreutils 'sort' would be ported to native Windows with no effort.
I can work on that, if you have no objections.
Bruno
(*) Minix has "mthreads". Some volunteer may work on wrapping these in the
pthread API.