memory, threading, network hardening

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
This commit is contained in:
Pavel Okhlopkov 2026-04-06 21:19:37 +03:00
parent 312994be83
commit 2e8856bacd
9 changed files with 135 additions and 24 deletions

View file

@ -361,6 +361,8 @@ public:
}
private:
// MAIN-THREAD-ONLY: all entity map mutations happen via dispatchQueuedPackets()
// which runs on the main thread. Do NOT access from the async network pump thread.
std::unordered_map<uint64_t, std::shared_ptr<Entity>> entities;
};