fixed random dns errors caused by synchronization issues with m_thread_kill

for more details: http://forums.winamp.com/showthread.php?s=&threadid=247723


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4716 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-07-30 14:26:47 +00:00
parent 4d504e2df8
commit 78b996033a
2 changed files with 21 additions and 14 deletions

View file

@ -26,10 +26,11 @@ public:
int resolve(char *hostname, unsigned long *addr); // return 0 on success, 1 on wait, -1 on unresolvable
private:
void wait_for_thread_death();
char m_hostname[256];
unsigned long m_addr;
volatile int m_thread_kill;
HANDLE m_thread;
static unsigned long WINAPI _threadfunc(LPVOID _d);