示例#1
0
文件: ckpttimer.cpp 项目: dmtcp/dmtcp
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! ***");
}
示例#2
0
文件: ckpttimer.cpp 项目: dmtcp/dmtcp
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! ***");
}
示例#3
0
文件: ckpttimer.cpp 项目: dmtcp/dmtcp
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);
}
示例#4
0
static void select_click_handler(ClickRecognizerRef recognizer, void *context) {
	//start/pause the timer
	if (remaining > 0) {
		start_stop_timer();
	}
}