class XLineManager;
class BanCacheManager;
+class CoreExport ConfigReaderThread : public Thread
+{
+ InspIRCd* ServerInstance;
+ bool do_bail;
+ User* TheUser;
+ public:
+ ConfigReaderThread(InspIRCd* Instance, bool bail, User* user) : Thread(), ServerInstance(Instance), do_bail(bail), TheUser(user)
+ {
+ }
+
+ virtual ~ConfigReaderThread()
+ {
+ }
+
+ void Run();
+};
+
/** The main class of the irc server.
* This class contains instances of all the other classes
* in this software, with the exception of the base class,
private:
/** Holds the current UID. Used to generate the next one.
*/
- char current_uid[UUID_LENGTH];
+ char current_uid[UUID_LENGTH + 1];
/** Set up the signal handlers
*/
*/
SocketEngine* SE;
+ /** Thread engine, Handles threading where required
+ */
+ ThreadEngine* Threads;
+
+ /** The thread/class used to read config files in REHASH and on startup
+ */
+ ConfigReaderThread* ConfigThread;
+
/** LogManager handles logging.
*/
LogManager *Logs;