summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-04 11:03:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-04 11:03:58 +0000
commitbc770c5388bc5517be85afb43255cb9f8ead0d33 (patch)
tree2047bbe65b6c4d2e9707ed59577d5f2de3eaca4e
parent2a0c6c52d045fe3a6dda9bf0209be250fa486d6b (diff)
MutexEngine -> MutexFactory, more sensible name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10385 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h2
-rw-r--r--include/threadengines/threadengine_pthread.h4
-rw-r--r--include/threadengines/threadengine_win32.h4
-rw-r--r--src/threadengines/threadengine_pthread.cpp4
-rw-r--r--src/threadengines/threadengine_win32.cpp4
5 files changed, 9 insertions, 9 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 09bf02ba5..566550376 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -448,7 +448,7 @@ class CoreExport InspIRCd : public classbase
/** Mutex engine, handles mutexes for threading where required
*/
- MutexEngine* Mutexes;
+ MutexFactory* Mutexes;
/** The thread/class used to read config files in REHASH and on startup
*/
diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h
index e3f8b0860..76548c252 100644
--- a/include/threadengines/threadengine_pthread.h
+++ b/include/threadengines/threadengine_pthread.h
@@ -64,12 +64,12 @@ class CoreExport PosixMutex : public Mutex
~PosixMutex();
};
-class CoreExport MutexEngine : public Extensible
+class CoreExport MutexFactory : public Extensible
{
protected:
InspIRCd* ServerInstance;
public:
- MutexEngine(InspIRCd* Instance);
+ MutexFactory(InspIRCd* Instance);
Mutex* CreateMutex();
};
diff --git a/include/threadengines/threadengine_win32.h b/include/threadengines/threadengine_win32.h
index e19f24ca0..9179d1fcf 100644
--- a/include/threadengines/threadengine_win32.h
+++ b/include/threadengines/threadengine_win32.h
@@ -63,12 +63,12 @@ class CoreExport Win32Mutex : public Mutex
~Win32Mutex();
};
-class CoreExport MutexEngine : public Extensible
+class CoreExport MutexFactory : public Extensible
{
protected:
InspIRCd* ServerInstance;
public:
- MutexEngine(InspIRCd* Instance);
+ MutexFactory(InspIRCd* Instance);
virtual Mutex* CreateMutex();
};
diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp
index a1993af45..66898bf25 100644
--- a/src/threadengines/threadengine_pthread.cpp
+++ b/src/threadengines/threadengine_pthread.cpp
@@ -105,11 +105,11 @@ void PThreadEngine::FreeThread(Thread* thread)
}
}
-MutexEngine::MutexEngine(InspIRCd* Instance) : ServerInstance(Instance)
+MutexFactory::MutexFactory(InspIRCd* Instance) : ServerInstance(Instance)
{
}
-Mutex* MutexEngine::CreateMutex()
+Mutex* MutexFactory::CreateMutex()
{
return new PosixMutex(this->ServerInstance);
}
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp
index e2b58b42e..180ded0ea 100644
--- a/src/threadengines/threadengine_win32.cpp
+++ b/src/threadengines/threadengine_win32.cpp
@@ -86,11 +86,11 @@ void Win32ThreadEngine::FreeThread(Thread* thread)
}
-MutexEngine::MutexEngine(InspIRCd* Instance) : ServerInstance(Instance)
+MutexFactory::MutexFactory(InspIRCd* Instance) : ServerInstance(Instance)
{
}
-Mutex* MutexEngine::CreateMutex()
+Mutex* MutexFactory::CreateMutex()
{
return new Win32Mutex(this->ServerInstance);
}