+2006-02-09 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * mswindows.c (run_with_timeout): Made thread_hnd non-static.
+
2006-02-05 Hrvoje Niksic <hniksic@xemacs.org>
* retr.c (sleep_between_retrievals): Sleep at a minimum of 1/2 of
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;
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 ();