Re: [PATCH v7 03/10] compat/win32: add pthread_cond_timedwait
- From
- Paul Tarjan <paul@paultarjan.com>
- Date
- Mar 4, 2026, 18:17 UTC
- Message-ID
- <20260304181744.25653-1-github@paulisageek.com>
- In-Reply-To
- <aafieD42pMaYsnRw@pks.im>
On Tue, Mar 4, 2026, Patrick Steinhardt wrote:
> So I guess it's safe to return ETIMEDOUT directly here?
Yep, that matches the POSIX spec. Fixed in v8.
> Wouldn't it make sense to extend `err_win_to_posix()` instead?
err_win_to_posix() currently maps ERROR_TIMEOUT to EBUSY, not ETIMEDOUT. Changing that mapping could affect other callers, so it seemed safer to handle WAIT_TIMEOUT explicitly in this function.