[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to circumvent MinGW's broken pthread_cond_broadcast()
From: |
Tim Rühsen |
Subject: |
How to circumvent MinGW's broken pthread_cond_broadcast() |
Date: |
Sat, 30 Sep 2017 19:17:51 +0200 |
User-agent: |
KMail/5.2.3 (Linux/4.12.0-2-amd64; KDE/5.37.0; x86_64; ; ) |
Hi,
pthread_cond_broadcast() on MinGW is broken in such that it sometimes doesn't
wake up all threads. This leads currently to easily reproducible 'hangs' in
the MinGW64 test suite of Wget2.
The good thing: It made me switch to glthreads today, which immediately worked
on my Debian box with a native build. Thanks for glthreads !
But the hangs still occur for my MinGW64 build - looking at it... yes, it uses
pthreads. So no surprise here.
My question: How can I force the MinGW build to ignore pthreads and use the
native Win32 API ? (I am using gnulib's bootstrap script + ./configure, make,
make check.)
With Best Regards, Tim
signature.asc
Description: This is a digitally signed message part.
- How to circumvent MinGW's broken pthread_cond_broadcast(),
Tim Rühsen <=