예제 #1
0
BENCHMARK_F(MicroBenchmarkBasicFixture, BM_Difference)(benchmark::State& state) {
  _clear_cache();
  auto warm_up = std::make_shared<Difference>(_table_wrapper_a, _table_wrapper_b);
  warm_up->execute();
  for (auto _ : state) {
    auto difference = std::make_shared<Difference>(_table_wrapper_a, _table_wrapper_b);
    difference->execute();
  }
}
예제 #2
0
/*
 * fini() is called when the plugin is unloaded. Free all memory.
 */
extern int fini(void)
{
	pthread_mutex_lock(&bb_mutex);
	if (debug_flag)
		info("%s: %s",  __func__, plugin_type);
	_clear_config();
	_clear_cache();
	pthread_mutex_unlock(&bb_mutex);

	return SLURM_SUCCESS;
}
예제 #3
0
void AnimationCache::set_animation(const Ref<Animation>& p_animation) {

	_clear_cache();

	if (animation.is_valid())
		animation->disconnect("changed",this,"_animation_changed");

	animation=p_animation;

	if (animation.is_valid())
		animation->connect("changed",this,"_animation_changed");
}
예제 #4
0
void AnimationCache::_animation_changed() {


	_clear_cache();
}
예제 #5
0
void AnimationCache::set_root(Node* p_root) {

	_clear_cache();
	root=p_root;
}