Skip to content

asyn-thread: fix Curl_thread_create result check - #13542

Closed
jay wants to merge 1 commit into
curl:masterfrom
jay:fix_createthread_retval
Closed

asyn-thread: fix Curl_thread_create result check#13542
jay wants to merge 1 commit into
curl:masterfrom
jay:fix_createthread_retval

Conversation

@jay

@jay jay commented May 6, 2024

Copy link
Copy Markdown
Member
  • Compare to curl_thread_t_null instead of 0 for error.

Currently for both supported thread libraries (pthreads and Windows) curl_thread_t_null is defined as 0. However, the pattern throughout the code is to check against curl_thread_t_null and not 0 since for posterity some thread library may not use 0 for error.

Closes #xxxx

- Compare to curl_thread_t_null instead of 0 for error.

Currently for both supported thread libraries (pthreads and Windows)
curl_thread_t_null is defined as 0. However, the pattern throughout the
code is to check against curl_thread_t_null and not 0 since for
posterity some thread library may not use 0 for error.

Closes #xxxx
@jay jay added the tidy-up label May 6, 2024
@github-actions github-actions Bot added the name lookup DNS and related tech label May 6, 2024
@jay jay closed this in 62ae1f1 May 7, 2024
@jay
jay deleted the fix_createthread_retval branch May 7, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

name lookup DNS and related tech tidy-up

Development

Successfully merging this pull request may close these issues.

1 participant