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;
|
AtomicFileSet files;
|
||||||
|
ostream* output;
|
||||||
|
|
||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
files.add("ap_state.dat",
|
files.add("ap_state.dat",
|
||||||
new BoincRawDataCheckpointFile(client.state, sizeof(client.state)));
|
new BoincRawDataCheckpointFile(client.state, sizeof(client.state)));
|
||||||
files.add("pulse.out", new BoincStreamCheckpointFile);
|
files.add("pulse.out", (output=new BoincStreamCheckpointFile));
|
||||||
if (files.read()) {
|
if (files.read()) {
|
||||||
// resuming
|
// resuming
|
||||||
} else {
|
} else {
|
||||||
// new run
|
*output << "<astropulse> ...";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void output_pulse()
|
||||||
|
{
|
||||||
|
*output << "<pulse> ... </pulse>";
|
||||||
|
}
|
||||||
|
|
||||||
void checkpoint()
|
void checkpoint()
|
||||||
{
|
{
|
||||||
files.write();
|
files.write();
|
||||||
|
|
Loading…
Reference in New Issue