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_inifin.h>
54 if (clips_thread == NULL) {
56 "CLIPSAspect, but RTTI says it "
63 clips_thread->CLIPSAspect_log_component_name_);
65 clips_thread->
clips = clips;
73 if (clips_thread == NULL) {
75 "CLIPSAspect, but RTTI says it "
81 clips_thread->finalize_CLIPSAspect();
90 clips_env_mgr_ = clips_env_mgr;
virtual void init(Thread *thread)
Initialize thread.
~CLIPSAspectIniFin()
Destructor.
Thread cannot be initialized.
CLIPSAspectIniFin()
Constructor.
const char * name() const
Get name of thread.
LockPtr< CLIPS::Environment > clips
CLIPS environment for exclusive usage.
Aspect initializer/finalizer base class.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
virtual void finalize(Thread *thread)
Finalize thread.
Fawkes library namespace.
const std::string clips_env_name
CLIPS environment name.
Thread aspect to get access to a CLIPS environment.
Thread class encapsulation of pthreads.
Thread cannot be finalized.