From f07ec6a8639497757e2e4a87bcd204af5124cd8f Mon Sep 17 00:00:00 2001 From: Michael Gary Date: Mon, 24 Jun 2002 17:30:49 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=132 --- api/api.C | 5 ----- api/api.h | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/api/api.C b/api/api.C index 09badfee71..e1d909aaf1 100644 --- a/api/api.C +++ b/api/api.C @@ -233,11 +233,6 @@ void boinc_init(APP_IN& ai) { set_timer((int)ai.checkpoint_period); } -double boinc_time() { - //return double_time(); - return 0; -} - void boinc_poll(APP_IN& ai, APP_OUT& ao) { FILE* f; diff --git a/api/api.h b/api/api.h index 40f61c167f..6036e6c184 100644 --- a/api/api.h +++ b/api/api.h @@ -48,10 +48,11 @@ public: // An application that wants to be well-behaved should do the following: // -// - call boinc_init() at startup -// - call boinc_time() periodically. -// This is cheap - it gets the time of day. +// - call boinc_init(APP_IN&) at startup +// - call time_to_checkpoint() often. +// This is cheap - it returns true if time to checkpoint. // - checkpoint as often as requested by core +// - call checkpoint_completed() when checkpoint is complete // - boinc_poll(): // Call this as often as requested by core @@ -86,7 +87,6 @@ void parse_init_file(FILE* f); void boinc_init(APP_IN&); void parse_app_file(FILE* f, APP_OUT&); void write_app_file(FILE* f, APP_OUT&); -double boinc_time(); void boinc_poll(APP_IN&, APP_OUT&); double boinc_cpu_time(); int boinc_resolve_link(char *file_name, char *resolved_name);