[Kst] branches/work/kst/portto4/kst/tests/dirfile_replay

Barth Netterfield netterfield at astro.utoronto.ca
Wed Aug 10 15:43:05 UTC 2011


SVN commit 1246216 by netterfield:

Help with concurency...


 M  +4 -1      replay.c  


--- branches/work/kst/portto4/kst/tests/dirfile_replay/replay.c #1246215:1246216
@@ -182,6 +182,7 @@
       i_ref = i_field;
     }
   }
+  printf("Reference field %d %s\n", i_ref, entry_list[i_ref].field);
   buffer = (void *)malloc(max_spf * sizeof(double));
   
   gettimeofday(&tv, NULL);
@@ -198,10 +199,12 @@
 	  process_field_entry(i_frame, entry_list+i_field, sourcedf, destdf);
         }
       }
+      if (i_frame == n_frames-1) {
+	usleep(10000);
+      }
       process_field_entry(i_frame, entry_list+i_ref, sourcedf, destdf);
       i_frame++;
     } else { // we are caught up
-      //gd_flush(destdf, NULL);
       usleep(10000);
     }
   }


More information about the Kst mailing list