mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2651
This commit is contained in:
parent
95456f122c
commit
148a68bd69
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue