int Ns_ScheduleProc( void (*proc) (), void *context, int fNewThread, int interval );
proc
to be run every interval
seconds, with context
as an argument. The flag fNewThread
determines whether proc
runs in its own thread. Ns_ScheduleProc returns an integer id for use in the Ns_UnscheduleProc function.Note that the newer Ns_ScheduleProcEx function provides a superset of the functionality in Ns_ScheduleProc.