wget-dev
[Top][All Lists]
Advanced

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

Re: wget2 | Switch to C11 threads (!509)


From: @rockdaboot
Subject: Re: wget2 | Switch to C11 threads (!509)
Date: Sun, 14 Aug 2022 16:50:02 +0000



Tim Rühsen commented:


Issues with C11 threads currently are
- MSVC does not know `threads.h`
- MinGW cross-compiler doesn't know `threads.h`
- Gnulib supports Windows/cross-compilation (offers a `threads.h`), but when 
testing with Wine, `cnd_timedout()` always immediately returns. Gnulib does not 
support Wine, so there won't be a fix for this.
- for cross-builds, the `--enable-threads=windows` should be used. If not, 
winpthreads is used when found and this library is broken. Bruno Haible (gnulib 
maintainer) suggested to use `gl_AVOID_WINPTHREAD` in `configure.ac`.

A suggested read: 
https://www.gnu.org/software/gnulib/manual/html_node/Choosing-a-multithreading-API.html

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/509#note_1062847972
You're receiving this email because of your account on gitlab.com.




reply via email to

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