From 9bd8e5c94e0ccb927a0e355175ceca689c727900 Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 9 Feb 2006 04:39:27 -0800 Subject: [PATCH] [svn] Made thread_hnd non-static. --- src/ChangeLog | 4 ++++ src/mswindows.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 14d91354..dfc743d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-02-09 Hrvoje Niksic + + * mswindows.c (run_with_timeout): Made thread_hnd non-static. + 2006-02-05 Hrvoje Niksic * retr.c (sleep_between_retrievals): Sleep at a minimum of 1/2 of diff --git a/src/mswindows.c b/src/mswindows.c index 986f1ba4..c54a5a4b 100644 --- a/src/mswindows.c +++ b/src/mswindows.c @@ -523,7 +523,7 @@ thread_helper (void *arg) bool run_with_timeout (double seconds, void (*fun) (void *), void *arg) { - static HANDLE thread_hnd = NULL; + HANDLE thread_hnd; struct thread_data thread_arg; DWORD thread_id; bool rc; @@ -537,9 +537,6 @@ run_with_timeout (double seconds, void (*fun) (void *), void *arg) return false; } - /* Should never happen, but test for recursivety anyway. */ - assert (thread_hnd == NULL); - thread_arg.fun = fun; thread_arg.arg = arg; thread_arg.ws_error = WSAGetLastError (); -- 2.39.2