summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/FactoryTableDef.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-06 13:08:23 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-06 13:08:23 +0000
commit3030ac8c355435c4426c82019669c476f5c76088 (patch)
treec57f7c0a983c44847f93285f0676df49f21707b9 /cppe/src/IceE/FactoryTableDef.cpp
parentUse direct proxy for process object instead of indirect proxy (diff)
downloadice-3030ac8c355435c4426c82019669c476f5c76088.tar.bz2
ice-3030ac8c355435c4426c82019669c476f5c76088.tar.xz
ice-3030ac8c355435c4426c82019669c476f5c76088.zip
Renamed namespace back to Ice
Diffstat (limited to 'cppe/src/IceE/FactoryTableDef.cpp')
-rw-r--r--cppe/src/IceE/FactoryTableDef.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/cppe/src/IceE/FactoryTableDef.cpp b/cppe/src/IceE/FactoryTableDef.cpp
index ae81f4bd657..2a8155a0a0d 100644
--- a/cppe/src/IceE/FactoryTableDef.cpp
+++ b/cppe/src/IceE/FactoryTableDef.cpp
@@ -14,7 +14,7 @@
# include <dlfcn.h>
#endif
-namespace IceE
+namespace Ice
{
FactoryTableWrapper factoryTableWrapper; // Single global instance of the wrapper object that
@@ -29,9 +29,9 @@ ICEE_API FactoryTableDef* factoryTable; // Single global instance of the factor
// If the factory is present already, increment its reference count.
//
void
-IceE::FactoryTableDef::addExceptionFactory(const std::string& t, const IceEInternal::UserExceptionFactoryPtr& f)
+Ice::FactoryTableDef::addExceptionFactory(const std::string& t, const IceInternal::UserExceptionFactoryPtr& f)
{
- IceE::Mutex::Lock lock(_m);
+ Ice::Mutex::Lock lock(_m);
EFTable::iterator i = _eft.find(t);
if(i == _eft.end())
{
@@ -46,10 +46,10 @@ IceE::FactoryTableDef::addExceptionFactory(const std::string& t, const IceEInter
//
// Return the exception factory for a given type ID
//
-IceEInternal::UserExceptionFactoryPtr
-IceE::FactoryTableDef::getExceptionFactory(const std::string& t) const
+IceInternal::UserExceptionFactoryPtr
+Ice::FactoryTableDef::getExceptionFactory(const std::string& t) const
{
- IceE::Mutex::Lock lock(_m);
+ Ice::Mutex::Lock lock(_m);
EFTable::const_iterator i = _eft.find(t);
#ifdef __APPLE__
if(i == _eft.end())
@@ -73,7 +73,7 @@ IceE::FactoryTableDef::getExceptionFactory(const std::string& t) const
i = _eft.find(t);
}
#endif
- return i != _eft.end() ? i->second.first : IceEInternal::UserExceptionFactoryPtr();
+ return i != _eft.end() ? i->second.first : IceInternal::UserExceptionFactoryPtr();
}
//
@@ -83,9 +83,9 @@ IceE::FactoryTableDef::getExceptionFactory(const std::string& t) const
// entry from the table.
//
void
-IceE::FactoryTableDef::removeExceptionFactory(const std::string& t)
+Ice::FactoryTableDef::removeExceptionFactory(const std::string& t)
{
- IceE::Mutex::Lock lock(_m);
+ Ice::Mutex::Lock lock(_m);
EFTable::iterator i = _eft.find(t);
if(i != _eft.end())
{
@@ -102,12 +102,12 @@ IceE::FactoryTableDef::removeExceptionFactory(const std::string& t)
// FactoryTableWrapper. This ensures that the global factoryTable variable is initialized
// before it can be used, regardless of the order of initialization of global objects.
//
-IceE::FactoryTableWrapper::FactoryTableWrapper()
+Ice::FactoryTableWrapper::FactoryTableWrapper()
{
initialize();
}
-IceE::FactoryTableWrapper::~FactoryTableWrapper()
+Ice::FactoryTableWrapper::~FactoryTableWrapper()
{
finalize();
}
@@ -117,9 +117,9 @@ IceE::FactoryTableWrapper::~FactoryTableWrapper()
// the number of calls made.
//
void
-IceE::FactoryTableWrapper::initialize()
+Ice::FactoryTableWrapper::initialize()
{
- IceE::StaticMutex::Lock lock(_m);
+ Ice::StaticMutex::Lock lock(_m);
if(_initCount == 0)
{
factoryTable = new FactoryTableDef;
@@ -131,14 +131,14 @@ IceE::FactoryTableWrapper::initialize()
// Delete the table if its reference count drops to zero.
//
void
-IceE::FactoryTableWrapper::finalize()
+Ice::FactoryTableWrapper::finalize()
{
- IceE::StaticMutex::Lock lock(_m);
+ Ice::StaticMutex::Lock lock(_m);
if(--_initCount == 0)
{
delete factoryTable;
}
}
-IceE::StaticMutex IceE::FactoryTableWrapper::_m = ICEE_STATIC_MUTEX_INITIALIZER;
-int IceE::FactoryTableWrapper::_initCount = 0; // Initialization count
+Ice::StaticMutex Ice::FactoryTableWrapper::_m = ICEE_STATIC_MUTEX_INITIALIZER;
+int Ice::FactoryTableWrapper::_initCount = 0; // Initialization count