Hi,

I am at switching wget2 multithreading from C99+glthreads to C11 (threads.h).

The tests work well on Linux (amd64) (Debian unstable/testing/stable, Fedora 35, Arch, Alpine/muslc) with native builds (gcc or clang).

But they completely fail when cross-building with MinGW64 (on Debian bookworm).

It looks like cnd_timedwait() always immediately returns with 1, no matter what timeout is specified. The cond is initialized and the mutex is locked.

Using cnd_wait() instead of cnd_timedwait() works well, but I'd prefer having using a timeout to catch some corner cases.

Is this a known issue ?

Regards, Tim

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to