try moving win32 to CreateThread() API 3

This commit is contained in:
Viktor Szakats 2025-09-03 23:14:13 +02:00
parent 01385ef1e9
commit 48e86bc03f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 6 additions and 10 deletions

View file

@ -640,12 +640,6 @@
#endif
#endif
#ifdef _WIN32
#define CURL_THREAD_RETURN_T DWORD
#else
#define CURL_THREAD_RETURN_T unsigned int
#endif
/*
* Arg 2 type for gethostname in case it has not been defined in config file.
*/

View file

@ -26,6 +26,7 @@
#include "curl_setup.h"
#ifdef USE_THREADS_POSIX
# define CURL_THREAD_RETURN_T unsigned int
# define CURL_STDCALL
# define curl_mutex_t pthread_mutex_t
# define curl_thread_t pthread_t *
@ -35,6 +36,7 @@
# define Curl_mutex_release(m) pthread_mutex_unlock(m)
# define Curl_mutex_destroy(m) pthread_mutex_destroy(m)
#elif defined(USE_THREADS_WIN32)
# define CURL_THREAD_RETURN_T DWORD
# define CURL_STDCALL WINAPI
# define curl_mutex_t CRITICAL_SECTION
# define curl_thread_t HANDLE