From 148a68bd69b50bdaa85fc7572cd41885101b066f Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Sun, 9 Nov 2003 04:04:12 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2651 --- api/boinc_checkpoint.C | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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();