summaryrefslogtreecommitdiff
path: root/orkbasecxx/ObjectFactory.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-02-09 02:17:03 +0000
committerHenri Herscher <henri@oreka.org>2007-02-09 02:17:03 +0000
commit6e895bf3e556be3d30d85d4329b4bd79891faf79 (patch)
tree2d295cce32ca2d8b4f0fb0b790e7df985c906c0d /orkbasecxx/ObjectFactory.h
parente660a409b15c382ca3ea98ffc9d7a73ee3e08d5d (diff)
ObjectFactory now protected by a mutex. It is also now possible to override an OrkObject class by reregistering a new class under the same name.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@407 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/ObjectFactory.h')
-rw-r--r--orkbasecxx/ObjectFactory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/orkbasecxx/ObjectFactory.h b/orkbasecxx/ObjectFactory.h
index 0c5cd31..fcfba11 100644
--- a/orkbasecxx/ObjectFactory.h
+++ b/orkbasecxx/ObjectFactory.h
@@ -14,6 +14,7 @@
#ifndef __OBJECTFACTORY_H__
#define __OBJECTFACTORY_H__
+#include "ace/Thread_Mutex.h"
#include "ace/Singleton.h"
#include <map>
#include "StdString.h"
@@ -37,9 +38,8 @@ private:
ObjectFactory();
static ObjectFactory* m_singleton;
std::map<CStdString, ObjectRef> m_classes;
+ ACE_Thread_Mutex m_mutex;
};
-//typedef ACE_Singleton<ObjectFactory, ACE_Thread_Mutex> ObjectFactorySingleton;
-
#endif