24 #include <core/threading/thread_finalizer.h>
25 #include <plugins/clips/aspect/clips_env_manager.h>
26 #include <plugins/clips/aspect/clips_inifin.h>
54 if (clips_thread == NULL) {
56 "CLIPSAspect, but RTTI says it "
62 clips_env_mgr_->create_env(clips_thread->clips_env_name,
63 clips_thread->CLIPSAspect_log_component_name_);
65 clips_thread->clips = clips;
71 CLIPSAspect *clips_thread;
72 clips_thread =
dynamic_cast<CLIPSAspect *
>(thread);
73 if (clips_thread == NULL) {
74 throw CannotFinalizeThreadException(
"Thread '%s' claims to have the "
75 "CLIPSAspect, but RTTI says it "
80 clips_env_mgr_->destroy_env(clips_thread->clips_env_name);
81 clips_thread->finalize_CLIPSAspect();
90 clips_env_mgr_ = clips_env_mgr;