*** empty log message ***

svn path=/trunk/boinc/; revision=2651
This commit is contained in:
Karl Chen 2003-11-09 04:04:12 +00:00
parent 95456f122c
commit 148a68bd69
1 changed files with 9 additions and 3 deletions

View File

@ -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 << "<astropulse> ...";
}
}
void output_pulse()
{
*output << "<pulse> ... </pulse>";
}
void checkpoint()
{
files.write();