On 2026-05-05 15:29, Kirill Makurin wrote:
I used "breaking changes" in that context to mean changes which will
make it harder to backport things. I don't have plans for any
user-visible API/ABI breaks. Some of changes I have in mind are:
- add comments for most static functions, so people who read the code
have an idea what they are doing
- move some stuff around within source files, so related functions are
located close to each other
- rename some internal functions and structure field names to improve
readability
One thing I realized is that winpthreads' pthread_spinlock
implementation is half-working - it does not keep track of the lock
owner, which means that a thread can release lock held by another
thread. This is what causes some of pthread_spinlock/ tests to fail.
Another thing I have in mind is to allow winpthreads to run on Windows
versions as old as NT 3.1; currently it uses APIs which are available
only since NT 4.0.
- Kirill Makurin
Sounds Epic! winpthreads certainly could use an overhaul. C11 threads is
also missing and MSVC is the only toolchain that can do it. I support
this effort. Despite I have no authority to approve anything.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public