24 #include <plugins/clips/aspect/clips_feature_inifin.h> 25 #include <plugins/clips/aspect/clips_env_manager.h> 26 #include <core/threading/thread_finalizer.h> 58 if (clips_thread == NULL) {
60 "CLIPSFeatureAspect, but RTTI says it " 61 "has not. ", thread->
name());
64 clips_env_mgr_->add_features(clips_thread->clips_features_);
73 if (clips_thread == NULL)
return true;
76 clips_env_mgr_->assert_can_remove_features(clips_thread->clips_features_);
88 if (clips_thread == NULL) {
90 "CLIPSFeatureAspect, but RTTI says it " 91 "has not. ", thread->
name());
94 clips_env_mgr_->remove_features(clips_thread->clips_features_);
105 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.