Esempio n. 1
0
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);
}
Esempio n. 2
0
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();
}
Esempio n. 3
0
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);
}
Esempio n. 4
0
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++;
}
Esempio n. 5
0
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();
}
Esempio n. 6
0
static void api_timer_delete(corosync_timer_handle_t th)
{
	qb_loop_timer_del(poll_loop, th);
}
Esempio n. 7
0
static void stop_qdevice_poll(void)
{
	qb_loop_timer_del(poll_loop, qdevice_timer);
	qdevice_timer = 0;
}