mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
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:
parent
664db28d29
commit
6f9f4b3cb7
18 changed files with 1641 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue