mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Performance] Server Reload Overhaul (#4689)
* [Performance] Server Reload Overhaul * Client::SendReloadCommandMessages * Remove global buffs
This commit is contained in:
+10
-2
@@ -21,6 +21,7 @@
|
||||
#include "../common/eq_packet_structs.h"
|
||||
#include "../common/net/servertalk_client_connection.h"
|
||||
#include "zone_event_scheduler.h"
|
||||
#include "../common/server_reload_types.h"
|
||||
|
||||
class ServerPacket;
|
||||
class EQApplicationPacket;
|
||||
@@ -31,6 +32,7 @@ public:
|
||||
WorldServer();
|
||||
~WorldServer();
|
||||
|
||||
void Process();
|
||||
void Connect();
|
||||
bool SendPacket(ServerPacket* pack);
|
||||
std::string GetIP() const;
|
||||
@@ -52,7 +54,6 @@ public:
|
||||
void SetLaunchedName(const char *n) { m_launchedName = n; }
|
||||
void SetLauncherName(const char *n) { m_launcherName = n; }
|
||||
void SendReloadTasks(uint8 reload_type, uint32 task_id = 0);
|
||||
void HandleReloadTasks(ServerPacket *pack);
|
||||
void UpdateLFP(uint32 LeaderID, uint8 Action, uint8 MatchFilter, uint32 FromLevel, uint32 ToLevel, uint32 Classes, const char *Comments,
|
||||
GroupLFPMemberEntry *LFPMembers);
|
||||
void UpdateLFP(uint32 LeaderID, GroupLFPMemberEntry *LFPMembers);
|
||||
@@ -61,7 +62,8 @@ public:
|
||||
void HandleLFPMatches(ServerPacket *pack);
|
||||
|
||||
void RequestTellQueue(const char *who);
|
||||
|
||||
void QueueReload(ServerReload::Request r);
|
||||
void ProcessReload(const ServerReload::Request &request);
|
||||
private:
|
||||
virtual void OnConnected();
|
||||
|
||||
@@ -77,9 +79,15 @@ private:
|
||||
std::unique_ptr<EQ::Timer> m_keepalive;
|
||||
|
||||
ZoneEventScheduler *m_zone_scheduler;
|
||||
|
||||
// server reload queue
|
||||
std::unique_ptr<EQ::Timer> m_process_timer;
|
||||
std::mutex m_reload_mutex = {};
|
||||
std::map<int, ServerReload::Request> m_reload_queue = {};
|
||||
public:
|
||||
ZoneEventScheduler *GetScheduler() const;
|
||||
void SetScheduler(ZoneEventScheduler *scheduler);
|
||||
void SendReload(ServerReload::Type type, bool is_global = true);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user