diff --git a/api/boinc_checkpoint.C b/api/boinc_checkpoint.C index 3453c4cc46..2fbd40d1de 100644 --- a/api/boinc_checkpoint.C +++ b/api/boinc_checkpoint.C @@ -233,22 +233,28 @@ public: } }; -/* usage in astropulse: +usage in astropulse: AtomicFileSet files; +ostream* output; void init() { files.add("ap_state.dat", new BoincRawDataCheckpointFile(client.state, sizeof(client.state))); - files.add("pulse.out", new BoincStreamCheckpointFile); + files.add("pulse.out", (output=new BoincStreamCheckpointFile)); if (files.read()) { // resuming } else { - // new run + *output << " ..."; } } +void output_pulse() +{ + *output << " ... "; +} + void checkpoint() { files.write();