X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fmainloop.h;h=0bf4e2edfadc10ea4577ecd41b8bf22470db0c7a;hb=342e0c3edeacf4eecd03da36c879ca817c64a0f3;hp=90a4644d68dafb7ede7efd212f022bf202fe1060;hpb=952903e174bc0dc5e8077acf8b97afa1290c1120;p=libucw.git diff --git a/ucw/mainloop.h b/ucw/mainloop.h index 90a4644d..0bf4e2ed 100644 --- a/ucw/mainloop.h +++ b/ucw/mainloop.h @@ -35,7 +35,7 @@ extern timestamp_t main_now; /** Current time in milliseconds since the UNIX epoch. See @main_get_time(). **/ extern ucw_time_t main_now_seconds; /** Current time in seconds since the epoch. **/ extern timestamp_t main_idle_time; /** Total time in milliseconds spent in the poll() call. **/ -extern clist main_timer_list, main_file_list, main_hook_list, main_process_list; +extern clist main_file_list, main_hook_list, main_hook_done_list, main_process_list; /** * This is a description of a timer. @@ -261,6 +261,7 @@ enum main_hook_return { /** * Inserts a new hook into the loop. + * The hook will be scheduled at least once before next sleep. * May be called from inside a hook handler too. **/ void hook_add(struct main_hook *ho);