nameserv: add asynchronous resolving with POSIX threads

Run getaddrinfo()/gethostbyname() in separate thread to avoid blocking.
Only one resolving thread is running at one time, so this should work
also on systems where the functions are not thread-safe.
This commit is contained in:
Miroslav Lichvar
2014-04-23 17:50:36 +02:00
parent d243f1f8fe
commit 5483567190
3 changed files with 110 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ typedef enum {
LOGF_Manual,
LOGF_Keys,
LOGF_Logging,
LOGF_Nameserv,
LOGF_Rtc,
LOGF_Regress,
LOGF_Sys,