Changeset 4603
- Timestamp:
- Jul 24, 2005, 9:20:33 AM (21 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 1 added
- 5 edited
-
include/scheduler.h (modified) (1 diff)
-
pantasks/CheckTasks.c (modified) (1 diff)
-
pantasks/Makefile (modified) (1 diff)
-
pantasks/TaskOps.c (modified) (1 diff)
-
pantasks/init.c (modified) (2 diffs)
-
pantasks/task_nmax.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/scheduler.h
r4602 r4603 65 65 TimeRange *ranges; 66 66 67 int N total; // only construct Ntotal jobs for this task67 int Nmax; // only construct Ntotal jobs for this task 68 68 int Njobs; 69 69 -
trunk/Ohana/src/opihi/pantasks/CheckTasks.c
r4602 r4603 17 17 /* need to check if the current time is within valid/invalid periods */ 18 18 if (!CheckTimeRanges (task[0].ranges, task[0].Nranges)) continue; 19 if (task[0].Nmax && (task[0].Njobs >= task[0].Nmax)) continue; 19 20 20 21 SetCurrentTask (task[0].name); -
trunk/Ohana/src/opihi/pantasks/Makefile
r4602 r4603 52 52 $(SDIR)/controller_output.$(ARCH).o \ 53 53 $(SDIR)/task.$(ARCH).o \ 54 $(SDIR)/task_command.$(ARCH).o \55 54 $(SDIR)/task_host.$(ARCH).o \ 55 $(SDIR)/task_nmax.$(ARCH).o \ 56 56 $(SDIR)/task_macros.$(ARCH).o \ 57 57 $(SDIR)/task_trange.$(ARCH).o \ 58 $(SDIR)/task_periods.$(ARCH).o 58 $(SDIR)/task_periods.$(ARCH).o \ 59 $(SDIR)/task_command.$(ARCH).o 59 60 60 61 libs = \ -
trunk/Ohana/src/opihi/pantasks/TaskOps.c
r4602 r4603 138 138 gettimeofday (&tasks[Ntasks].last, (void *) NULL); 139 139 tasks[Ntasks].Njobs = 0; 140 tasks[Ntasks].Nmax = 0; /* default value means 'no limit' */ 140 141 141 142 Ntasks ++; -
trunk/Ohana/src/opihi/pantasks/init.c
r4602 r4603 4 4 int task PROTO((int, char **)); 5 5 int task_host PROTO((int, char **)); 6 int task_nmax PROTO((int, char **)); 6 7 int task_trange PROTO((int, char **)); 7 8 int task_macros PROTO((int, char **)); … … 19 20 {"task", task, "define a schedulable task"}, 20 21 {"host", task_host, "define host machine for a task"}, 22 {"nmax", task_nmax, "define maximum number of jobs for a task"}, 21 23 {"trange", task_trange, "define valid/invalid time periods for a task"}, 22 24 {"task.exit", task_macros, "define exit macros for a task"},
Note:
See TracChangeset
for help on using the changeset viewer.
