From 853a11e16eecf702d1019662cbfca272c28dbff9 Mon Sep 17 00:00:00 2001 From: Michael Gary Date: Wed, 3 Jul 2002 20:50:34 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=157 --- checkin_notes | 2 ++ doc/api.html | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index efaf999cd8..8155bf205c 100755 --- a/checkin_notes +++ b/checkin_notes @@ -724,4 +724,6 @@ Michael Gary 7/03/2002 client/ hostinfo_unix.C configure + doc/ + api.html diff --git a/doc/api.html b/doc/api.html index cedc0bbc7e..81dde144af 100644 --- a/doc/api.html +++ b/doc/api.html @@ -18,12 +18,13 @@ Simple support for writing output into memory buffers, then appending them to output files and writing the checkpoint file (almost atomic).
  • Using the api . -The client, if using the api, should call time_to_checkpoint() +The application, if using the api, should call time_to_checkpoint() inside of the innermost loop, and, if time_to_checkpoint() returns true, the client should run a checkpoint, then call checkpoint_completed(). This will ensure proper cpu time accounting and write trigger files for the core client. All input and output should be written through MFILEs, using the associated i/o functions and flushing MFILEs at each checkpoint -to ensure data is saved. +to ensure data is saved. When the application has completed it +should call app_completed(), then exit.