static void restart() { JTRACE("The plugin is now being restarting from a checkpoint."); /* Need to stop the timer on resume/restart. */ start_stop_timer(timerid, g_interval, STOP_TIMER); JTRACE("*** Canceled the ckpt timer! ***"); }
static void resume() { JTRACE("The process is now resuming after checkpoint."); /* Need to stop the timer on resume/restart. */ start_stop_timer(timerid, g_interval, STOP_TIMER); JTRACE("*** Canceled the ckpt timer! ***"); }
static void pre_ckpt() { sigset_t mask; JTRACE("*** The plugin is being called before checkpointing. ***"); /* Unblock the timer signal, and then start the timer */ if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1) { handleError("sigprocmask"); } start_stop_timer(timerid, g_interval, START_TIMER); }
static void select_click_handler(ClickRecognizerRef recognizer, void *context) { //start/pause the timer if (remaining > 0) { start_stop_timer(); } }