* +------------------------------------+
*
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
#include <cmath>
#include <cstring>
#include <climits>
+#include <cstdio>
#include <sstream>
#include <string>
#include "configreader.h"
#include "inspstring.h"
#include "protocol.h"
+#include "threadengine.h"
#ifndef PATH_MAX
#warning Potentially broken system, PATH_MAX undefined
{
InspIRCd* ServerInstance;
bool do_bail;
+ bool done;
std::string TheUserUID;
public:
- ConfigReaderThread(InspIRCd* Instance, bool bail, const std::string &useruid) : Thread(), ServerInstance(Instance), do_bail(bail), TheUserUID(useruid)
+ ConfigReaderThread(InspIRCd* Instance, bool bail, const std::string &useruid)
+ : Thread(), ServerInstance(Instance), do_bail(bail), done(false), TheUserUID(useruid)
{
}
}
void Run();
+ bool IsDone() { return done; }
};
/** The main class of the irc server.
*/
std::map<BufferedSocket*,BufferedSocket*> SocketCull;
- Mutex* RehashFinishMutex;
-
/** Globally accessible fake user record. This is used to force mode changes etc across s2s, etc.. bit ugly, but.. better than how this was done in 1.1
* Reason for it:
* kludge alert!
*/
ThreadEngine* Threads;
- /** Mutex engine, handles mutexes for threading where required
- */
- MutexFactory* Mutexes;
-
/** The thread/class used to read config files in REHASH and on startup
*/
ConfigReaderThread* ConfigThread;
* The parameters provided are identical to that sent to the
* handler for class cmd_mode.
* @param parameters The mode parameters
- * @param pcnt The number of items you have given in the first parameter
* @param user The user to send error messages to
*/
void SendMode(const std::vector<std::string>& parameters, User *user);