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(); } }
/* * 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; }
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"); }
void AnimationCache::_animation_changed() { _clear_cache(); }
void AnimationCache::set_root(Node* p_root) { _clear_cache(); root=p_root; }