[svn] Made thread_hnd non-static.

This commit is contained in:
hniksic 2006-02-09 04:39:27 -08:00
parent 15f7e83216
commit 9bd8e5c94e
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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 ();