Changeset 23512
- Timestamp:
- Mar 25, 2009, 11:12:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090322/Ohana/src/opihi/pantasks/CheckTasks.c
r23484 r23512 7 7 int status; 8 8 float time_running, next_timeout, fuzz; 9 // struct timeval now;10 9 11 10 // actual maximum delay is controlled in job_threads.c … … 66 65 } 67 66 68 // gettimeofday (&now, (void *) NULL);69 // fprintf (stderr, "t1: %d %6d - \n", now.tv_sec, now.tv_usec);70 71 67 /* check if there are errors with this task */ 72 68 if (!ValidateTask (task, TRUE)) { … … 74 70 } 75 71 76 // gettimeofday (&now, (void *) NULL);77 // fprintf (stderr, "t2: %d %6d - \n", now.tv_sec, now.tv_usec);78 79 72 /* construct job from task */ 80 73 job = CreateJob (task); 81 74 if (DEBUG) fprintf (stderr, "create job: (%zx) %d of %d\n", (size_t) job[0].stdout_buff.buffer, job[0].stdout_buff.Nbuffer, job[0].stdout_buff.Nalloc); 82 75 83 // gettimeofday (&now, (void *) NULL); 84 // fprintf (stderr, "t3: %d %6d - \n", now.tv_sec, now.tv_usec); 85 86 /* execute job - XXX add status test */ 87 SubmitJob (job); 88 89 // fprintf (stderr, "nl: %d %6d - ", 90 // task[0].last.tv_sec, task[0].last.tv_usec); 91 92 /* increment job counters */ 93 task[0].Njobs ++; 94 task[0].Npending ++; 95 96 // fprintf (stderr, "%d %6d\n", 97 // task[0].last.tv_sec, task[0].last.tv_usec); 76 /* execute job */ 77 if (!SubmitJob (job)) { 78 DeleteJob (job); 79 continue; 80 } 81 task[0].Njobs ++; // number of jobs successfully submitted 98 82 99 83 /* increment Nrun for inclusive ranges with Nmax */
Note:
See TracChangeset
for help on using the changeset viewer.
