Skip to content
Snippets Groups Projects
Commit 591c4330 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Updated the internal module name at the beginning of the constructor and used elsewhere.

parent 7ba3317a
No related branches found
No related tags found
No related merge requests found
......@@ -245,14 +245,14 @@ CModule<ModuleCfg>::CModule(const std::string &name,const std::string &name_spac
{
try
{
this->name=this->module_nh.getNamespace();
this->event_server=CEventServer::instance();
this->finish_thread_event_id=name+"_finish_thread_event";
this->finish_thread_event_id=this->name+"_finish_thread_event";
this->event_server->create_event(this->finish_thread_event_id);
this->thread_server=CThreadServer::instance();
this->module_thread_id=name+"_module_thread";
this->module_thread_id=this->name+"_module_thread";
this->thread_server->create_thread(this->module_thread_id);
this->thread_server->attach_thread(this->module_thread_id,this->module_thread,this);
this->name=this->module_nh.getNamespace();
}
catch (CException &ex)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment