lib: add thread pool and queue

- new source files for thread pool and queue
- test cases 3217 and 3218 for them
- internal documentation

Closes #20916
This commit is contained in:
Stefan Eissing 2026-03-13 10:22:07 +01:00 committed by Daniel Stenberg
parent 664db28d29
commit 6f9f4b3cb7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
18 changed files with 1641 additions and 1 deletions

View file

@ -99,6 +99,7 @@ static void curl_dbg_log_locked(const char *format, ...) CURL_PRINTF(1, 2);
_exit() comes after the atexit handlers are called. curl/curl#6620 */
static void curl_dbg_cleanup(void)
{
bool locked = curl_dbg_lock();
if(curl_dbg_logfile &&
curl_dbg_logfile != stderr &&
curl_dbg_logfile != stdout) {
@ -108,6 +109,7 @@ static void curl_dbg_cleanup(void)
fclose(curl_dbg_logfile);
}
curl_dbg_logfile = NULL;
curl_dbg_unlock(locked);
#ifdef USE_MUTEX
if(dbg_mutex_init) {
Curl_mutex_destroy(&dbg_mutex);