From: hniksic Date: Wed, 8 Oct 2003 00:16:43 +0000 (-0700) Subject: [svn] run_with_timeout docstring synch with utils.c. X-Git-Tag: v1.13~1611 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=e4d15a373b626202e7dd6a854370f87bbe5015bd [svn] run_with_timeout docstring synch with utils.c. --- diff --git a/src/mswindows.c b/src/mswindows.c index b4bb8619..3f36d2c5 100644 --- a/src/mswindows.c +++ b/src/mswindows.c @@ -383,11 +383,12 @@ thread_helper (void *arg) return 0; } -/* - * Run FUN with timeout. This is done by creating a thread for 'fun' - * to run in and terminating the thread if it doesn't finish in - * SECONDS time. - */ +/* Call FUN(ARG), but don't allow it to run for more than TIMEOUT + seconds. Returns non-zero if the function was interrupted with a + timeout, zero otherwise. + + This works by running FUN in a separate thread and terminating the + thread if it doesn't finish in the specified time. */ int run_with_timeout (double seconds, void (*fun) (void *), void *arg)