24 #include <core/threading/thread_finalizer.h> 25 #include <plugins/clips/aspect/clips_env_manager.h> 26 #include <plugins/clips/aspect/clips_feature_inifin.h> 51 clips_thread = dynamic_cast<CLIPSFeatureAspect *>(thread);
52 if (clips_thread == NULL) {
54 "CLIPSFeatureAspect, but RTTI says it " 59 clips_env_mgr_->add_features(clips_thread->clips_features_);
66 clips_thread = dynamic_cast<CLIPSFeatureAspect *>(thread);
67 if (clips_thread == NULL)
71 clips_env_mgr_->assert_can_remove_features(clips_thread->clips_features_);
82 clips_thread = dynamic_cast<CLIPSFeatureAspect *>(thread);
83 if (clips_thread == NULL) {
85 "CLIPSFeatureAspect, but RTTI says it " 90 clips_env_mgr_->remove_features(clips_thread->clips_features_);
99 clips_env_mgr_ = clips_env_mgr;
Thread aspect to provide a feature to CLIPS environments.
Fawkes library namespace.
virtual void finalize(Thread *thread)
Finalize thread.
Thread class encapsulation of pthreads.
virtual bool prepare_finalize(Thread *thread)
Default finalize preparation.
LockPtr<> is a reference-counting shared lockable smartpointer.
~CLIPSFeatureAspectIniFin()
Destructor.
virtual void init(Thread *thread)
Initialize thread.
Thread cannot be initialized.
CLIPSFeatureAspectIniFin()
Constructor.
Base class for exceptions in Fawkes.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
const char * name() const
Get name of thread.
Thread cannot be finalized.
Aspect initializer/finalizer base class.