![]() |
Rosetta Protocols
2014.35
|
: singleton checkpoint timer class More...
#include <Checkpoint.hh>
Public Member Functions | |
void | set_interval (const int interval_in) |
Static Public Member Functions | |
static Timer & | instance (void) |
static bool | is_on (void) |
static bool | time_to_checkpoint (void) |
static void | reset (void) |
Private Member Functions | |
Timer (void) | |
Static Private Attributes | |
static bool | is_on_ = false |
static int | interval_ = 600 |
static time_t | time_ = time(0) |
: singleton checkpoint timer class
|
static |
Referenced by protocols::checkpoint::checkpoint_with_interval().
|
static |
References is_on_.
Referenced by protocols::checkpoint::CheckPointer::checkpoint(), and protocols::checkpoint::CheckPointer::recover_checkpoint().
|
static |
References protocols::boinc::Boinc::checkpoint_completed(), time_, and protocols::boinc::Boinc::update_pct_complete().
Referenced by protocols::checkpoint::CheckPointer::checkpoint(), protocols::jd2::BOINCJobDistributor::checkpoint_write(), and protocols::jobdist::BaseJobDistributor::checkpoint_write().
void protocols::checkpoint::Timer::set_interval | ( | const int | interval_in | ) |
References interval_.
Referenced by protocols::checkpoint::checkpoint_with_interval().
|
static |
References interval_, and time_.
Referenced by protocols::checkpoint::CheckPointer::checkpoint().
|
staticprivate |
Referenced by set_interval(), and time_to_checkpoint().
|
staticprivate |
Referenced by reset(), time_to_checkpoint(), and Timer().