Skip to content

Use strerror() for pthread error codes in mutex.c and threaded_queue.c - #301

Open
craigcomstock wants to merge 2 commits into
NorthernTechHQ:masterfrom
craigcomstock:ent-14925
Open

craigcomstock wants to merge 2 commits into
NorthernTechHQ:masterfrom
craigcomstock:ent-14925

Conversation

@craigcomstock

Copy link
Copy Markdown
Contributor

pthread functions return errno values, but GetErrorStrFromCode() on
Windows interprets its argument as a Windows system error code. This
produced misleading messages, e.g. ETIMEDOUT (138) from
pthread_cond_timedwait() was reported as "The system tried to join a
drive to a directory on a joined drive." (ERROR_IS_JOINED).

Ticket: ENT-14925
Changelog: none

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

cf-bottom

This comment was marked as outdated.

pthread functions return errno values, but GetErrorStrFromCode() on
Windows interprets its argument as a Windows system error code. This
produced misleading messages, e.g. ETIMEDOUT (138) from
pthread_cond_timedwait() was reported as "The system tried to join a
drive to a directory on a joined drive." (ERROR_IS_JOINED).

Ticket: ENT-14925
Changelog: none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in cmake_examples github workflow failing.

Ticket: ENT-15004
Changelog: title
@craigcomstock
craigcomstock requested review from larsewi and removed request for cf-bottom November 20, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants