aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar danieldg2009-03-23 20:42:17 +0000
committerGravatar danieldg2009-03-23 20:42:17 +0000
commite7150d29f4897d595c9ee2218e190d6cf42f191b (patch)
treefd63b14d0b940b1c14d2d6989f589ec7dc249222 /src/inspircd.cpp
parentMake this compile. (diff)
downloadinspircd++-e7150d29f4897d595c9ee2218e190d6cf42f191b.tar.gz
inspircd++-e7150d29f4897d595c9ee2218e190d6cf42f191b.tar.bz2
inspircd++-e7150d29f4897d595c9ee2218e190d6cf42f191b.zip
ConfigReaderThread updates: add done flag, remove main-thread-only mutex
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11256 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 7c82b706b..ab67449a2 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -762,8 +762,7 @@ int InspIRCd::Run()
#endif
/* Check if there is a config thread which has finished executing but has not yet been freed */
- RehashFinishMutex.Lock();
- if (this->ConfigThread && this->ConfigThread->GetExitFlag())
+ if (this->ConfigThread && this->ConfigThread->IsDone())
{
/* Rehash has completed */
@@ -798,7 +797,6 @@ int InspIRCd::Run()
delete ConfigThread;
ConfigThread = NULL;
}
- RehashFinishMutex.Unlock();
/* time() seems to be a pretty expensive syscall, so avoid calling it too much.
* Once per loop iteration is pleanty.