IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3140


Ignore:
Timestamp:
Feb 5, 2005, 6:52:07 PM (21 years ago)
Author:
eugene
Message:

reorg, tests

Location:
trunk/Ohana/src/opihi/pantasks
Files:
1 added
3 deleted
4 edited

Legend:

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

    r2598 r3140  
    7070}
    7171
    72 /* return job with given name */
     72/* return job with given ID */
    7373Job *FindJob (int JobID) {
    7474
     
    161161}
    162162
    163 /* this needs to: 1) distinguish local from controller jobs
     163/* this needs to:
     164   1) distinguish local from controller jobs
    164165   2) fork the local jobs in the background
    165166   3) send the controller jobs to the controller */
  • trunk/Ohana/src/opihi/pantasks/Makefile

    r2833 r3140  
    2626
    2727sched = \
    28 $(SDIR)/schedule.$(ARCH).o \
     28$(SDIR)/run.$(ARCH).o \
    2929$(SDIR)/task.$(ARCH).o \
    3030$(SDIR)/task_command.$(ARCH).o \
  • trunk/Ohana/src/opihi/pantasks/TaskOps.c

    r2598 r3140  
    141141}
    142142
     143double GetTaskTimer (struct timeval start) {
     144
     145  double dtime;
     146  struct timeval now;
     147 
     148  gettimeofday (&now, (void *) NULL);
     149  dtime = DTIME (now, start);
     150 
     151  return (dtime);
     152}
     153
     154void SetTaskTimer (struct timeval *timer) {
     155  gettimeofday (timer, (void *) NULL);
     156}
  • trunk/Ohana/src/opihi/pantasks/init.c

    r2598 r3140  
    77int task_command    PROTO((int, char **));
    88int task_periods    PROTO((int, char **));
    9 int schedule        PROTO((int, char **));
     9int run             PROTO((int, char **));
    1010
    1111static Command cmds[] = { 
     
    1616  {"command",   task_command, "define executed command for a task"},
    1717  {"periods",   task_periods, "define time scales for a task"},
    18   {"schedule",  schedule,     "schedule the tasks"},
     18  {"run",       run,          "run the scheduler"},
    1919};
    2020
Note: See TracChangeset for help on using the changeset viewer.