IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 4, 2005, 5:35:47 PM (21 years ago)
Author:
eugene
Message:

substantial dev work on scheduler/pcontrol/pclient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/TaskOps.c

    r3140 r4450  
    108108
    109109  tasks[Ntasks].host = NULL;
     110  tasks[Ntasks].host_required = FALSE;
    110111
    111112  tasks[Ntasks].argc = 0;
     
    124125  tasks[Ntasks].poll_period = 1.0;
    125126  tasks[Ntasks].timeout_period = 1.0;
     127
     128  /* init task timer (is reset by 'run') */ 
     129  gettimeofday (&tasks[Ntasks].last, (void *) NULL);
    126130
    127131  Ntasks ++;
     
    155159  gettimeofday (timer, (void *) NULL);
    156160}
     161
     162/* start the clock for all tasks */
     163void InitTaskTimers () {
     164
     165  Task *task;
     166
     167  while ((task = NextTask ()) != NULL) {
     168    gettimeofday (&task[0].last, (void *) NULL);
     169 }
     170}
Note: See TracChangeset for help on using the changeset viewer.