Fawkes API
Fawkes Development Version
|
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>
52 if (clips_thread == NULL) {
54 "CLIPSFeatureAspect, but RTTI says it "
59 clips_env_mgr_->add_features(clips_thread->clips_features_);
67 if (clips_thread == NULL)
71 clips_env_mgr_->assert_can_remove_features(clips_thread->clips_features_);
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;
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
LockPtr<> is a reference-counting shared lockable smartpointer.
Thread cannot be initialized.
const char * name() const
Get name of thread.
Aspect initializer/finalizer base class.
Fawkes library namespace.
virtual void finalize(Thread *thread)
Finalize thread.
virtual bool prepare_finalize(Thread *thread)
Default finalize preparation.
Thread class encapsulation of pthreads.
virtual void init(Thread *thread)
Initialize thread.
CLIPSFeatureAspectIniFin()
Constructor.
~CLIPSFeatureAspectIniFin()
Destructor.
Thread aspect to provide a feature to CLIPS environments.
Thread cannot be finalized.
Base class for exceptions in Fawkes.