C API Reference -- Ns_ScheduleProc

### Ns_ScheduleProc

#### Overview

Schedule a procedure to run at specified intervals

#### Syntax

        int Ns_ScheduleProc(
        void (*proc) (),
        void *context,
        int fNewThread,
        int interval
        );

#### Description

The Ns_ScheduleProc function schedules the procedure `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.

Top of Page
Copyright © 1998-99 America Online, Inc.