static void totemknet_stop_merge_detect_timeout( void *knet_context) { struct totemknet_instance *instance = (struct totemknet_instance *)knet_context; qb_loop_timer_del(instance->poll_handle, instance->timer_merge_detect_timeout); }
static void resource_recover_restart(void * inst) { struct resource *resource = (struct resource *)inst; qb_enter(); qb_loop_timer_del(NULL, resource->monitor_timer); qb_leave(); }
static void recurring_monitor_stop(struct pe_operation *op) { struct resource * r = (struct resource *)op->resource; if (qb_loop_timer_is_running(NULL, r->monitor_timer)) { qb_loop_timer_del(NULL, r->monitor_timer); pe_resource_unref(op); } r->monitor_op = NULL; pe_resource_unref(op); }
static void reset_one_shot_tmo(void*data) { int32_t res; qb_loop_t *l = data; if (reset_timer_step == 0) { res = qb_loop_timer_del(l, reset_th); ck_assert_int_eq(res, -EINVAL); res = qb_loop_timer_is_running(l, reset_th); ck_assert_int_eq(res, QB_FALSE); res = qb_loop_timer_add(l, QB_LOOP_LOW, 8*QB_TIME_NS_IN_MSEC, l, reset_one_shot_tmo, &reset_th); ck_assert_int_eq(res, 0); } reset_timer_step++; }
static void resource_recover_escalate(void * inst) { struct resource *r = (struct resource *)inst; qb_enter(); qb_log(LOG_NOTICE, "Escalating failure of service %s to node %s:%s", r->name, r->assembly->uuid, r->assembly->name); qb_loop_timer_del(NULL, r->monitor_timer); instance_destroy(r->assembly); qb_leave(); }
static void api_timer_delete(corosync_timer_handle_t th) { qb_loop_timer_del(poll_loop, th); }
static void stop_qdevice_poll(void) { qb_loop_timer_del(poll_loop, qdevice_timer); qdevice_timer = 0; }