X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Finspircd.h;h=4e37fae8d99d37436278191df7a07d53585daca8;hb=f7a563946c0f0f555440c30f91608880c9ebce89;hp=09bf02ba5a4d4869ff53dc5a51f2badbb3b25f0b;hpb=edd35ae3af70075e0d59b6409f6d206c6c08d85b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/inspircd.h b/include/inspircd.h index 09bf02ba5..4e37fae8d 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -66,7 +66,6 @@ typedef std::vector< KeyVal > KeyValList; */ typedef std::multimap< std::string, KeyValList > ConfigDataHash; - #include "inspircd_config.h" #include "numerics.h" #include "uid.h" @@ -277,13 +276,16 @@ DEFINE_HANDLER1(RehashHandler, void, const std::string&); class XLineManager; class BanCacheManager; +/** The background thread for config reading, so that reading from executable includes + * does not block. + */ class CoreExport ConfigReaderThread : public Thread { InspIRCd* ServerInstance; bool do_bail; - User* TheUser; + std::string TheUserUID; public: - ConfigReaderThread(InspIRCd* Instance, bool bail, User* user) : Thread(), ServerInstance(Instance), do_bail(bail), TheUser(user) + ConfigReaderThread(InspIRCd* Instance, bool bail, const std::string &useruid) : Thread(), ServerInstance(Instance), do_bail(bail), TheUserUID(useruid) { } @@ -448,7 +450,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 */