1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] run_with_timeout docstring synch with utils.c.

This commit is contained in:
hniksic 2003-10-07 17:16:43 -07:00
parent f1a802d1c0
commit e4d15a373b

View File

@ -383,11 +383,12 @@ thread_helper (void *arg)
return 0; return 0;
} }
/* /* Call FUN(ARG), but don't allow it to run for more than TIMEOUT
* Run FUN with timeout. This is done by creating a thread for 'fun' seconds. Returns non-zero if the function was interrupted with a
* to run in and terminating the thread if it doesn't finish in timeout, zero otherwise.
* SECONDS time.
*/ This works by running FUN in a separate thread and terminating the
thread if it doesn't finish in the specified time. */
int int
run_with_timeout (double seconds, void (*fun) (void *), void *arg) run_with_timeout (double seconds, void (*fun) (void *), void *arg)