Changeset 38986 for trunk/Ohana/src/opihi/pantasks
- Timestamp:
- Oct 27, 2015, 4:49:06 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
src/opihi/pantasks (modified) (1 prop)
-
src/opihi/pantasks/CheckJobs.c (modified) (4 diffs)
-
src/opihi/pantasks/CheckTasks.c (modified) (2 diffs)
-
src/opihi/pantasks/TaskOps.c (modified) (1 diff)
-
src/opihi/pantasks/pantasks_server.c.in (modified) (3 diffs)
-
src/opihi/pantasks/test/local.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150625/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/pantasks
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150616/Ohana/src/opihi/pantasks merged eligible /branches/eam_branches/ipp-20150625/Ohana/src/opihi/pantasks merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/pantasks/CheckJobs.c
r27614 r38986 1 1 # include "pantasks.h" 2 static int Ncheck = 0; 2 3 3 4 float CheckJobs () { … … 12 13 float time_running, next_timeout; 13 14 14 // int Ncheck; 15 // Ncheck = 0; 15 Ncheck ++; 16 16 17 17 // actual maximum delay is controlled in job_threads.c … … 21 21 /** test all jobs: ready to test? finished? **/ 22 22 while ((job = NextJob ()) != NULL) { 23 // Ncheck ++;24 23 25 24 task = job[0].task; … … 220 219 SetTaskTimer (&job[0].last); 221 220 } 222 // fprintf (stderr, "check %d jobs\n", Ncheck); 221 223 222 JobTaskUnlock(); 224 223 return (next_timeout); -
trunk/Ohana/src/opihi/pantasks/CheckTasks.c
r31666 r38986 1 1 # include "pantasks.h" 2 static int Ncheck = 0; 2 3 3 4 float CheckTasks () { … … 7 8 int status; 8 9 float time_running, next_timeout, fuzz; 10 11 Ncheck ++; 9 12 10 13 // actual maximum delay is controlled in job_threads.c -
trunk/Ohana/src/opihi/pantasks/TaskOps.c
r36623 r38986 22 22 void FreeTasks () { 23 23 int i; 24 for (i = 0; i < Ntasks; i++) { 24 int ntasks = Ntasks; 25 Ntasks = 0; 26 for (i = 0; i < ntasks; i++) { 25 27 FreeTask (tasks[i]); 26 28 } -
trunk/Ohana/src/opihi/pantasks/pantasks_server.c.in
r32632 r38986 19 19 20 20 char hostname[256], portinfo[256]; 21 char log_stdout[1024], log_stderr[1024] ;21 char log_stdout[1024], log_stderr[1024], tmpname[1024]; 22 22 pthread_t JobsAndTasksThread; 23 23 pthread_t clientsThread; … … 34 34 stdin = freopen ("/dev/zero", "r", stdin); 35 35 36 // this block redirects the actual stderr, stdout steams to the output files 37 if (VarConfig ("PANTASKS_SERVER_STDOUT", "%s", log_stdout) != NULL) { 36 // this block redirects the actual stderr, stdout streams to the output files 37 if (VarConfig ("PANTASKS_SERVER_STDOUT", "%s", tmpname) != NULL) { 38 strcpy (log_stdout, tmpname); 38 39 if (strcmp (log_stdout, "stdout")) { 39 40 stdout = freopen (log_stdout, "a", stdout); … … 44 45 } 45 46 } 46 if (VarConfig ("PANTASKS_SERVER_STDERR", "%s", log_stderr) != NULL) { 47 if (VarConfig ("PANTASKS_SERVER_STDERR", "%s", tmpname) != NULL) { 48 strcpy (log_stderr, tmpname); 47 49 if (strcmp (log_stderr, "stderr")) { 48 50 stderr = freopen (log_stderr, "a", stderr); -
trunk/Ohana/src/opihi/pantasks/test/local.sh
r10647 r38986 1 1 2 2 ## a basic test of memory allocation 3 if (not($?VERBOSE)) set VERBOSE = 0 3 4 4 5 exec rm -f tmp.txt … … 38 39 $startmem = $word:1 39 40 end 41 40 42 macro memcheck 41 43 list word -x "ps -p $PID -o rss"
Note:
See TracChangeset
for help on using the changeset viewer.
