asyn-thrdd: remove condition variable

Add a flag `thrd_don` to assess if the resolving thread has finished and
only destroy the context when *both* ref_count reaches 0 and thrd_done
is true.

Closes #18345
This commit is contained in:
Stefan Eissing 2025-08-21 21:50:20 +02:00 committed by Daniel Stenberg
parent c83fa990bd
commit 8ebea37eb1
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 13 additions and 42 deletions

View file

@ -36,7 +36,7 @@
#include "curl_threads.h"
#include "curl_memory.h"
/* The last #include file should be: */
/* The last #include FILE should be: */
#include "memdebug.h"
#ifdef USE_THREADS_POSIX