mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Use native packer to transfer globals into async env(s)
This commit is contained in:
parent
7f58887ae3
commit
ec9f157512
6 changed files with 11 additions and 11 deletions
|
@ -73,6 +73,7 @@ struct Lighting;
|
|||
class ServerThread;
|
||||
class ServerModManager;
|
||||
class ServerInventoryManager;
|
||||
struct PackedValue;
|
||||
|
||||
enum ClientDeletionReason {
|
||||
CDR_LEAVE,
|
||||
|
@ -388,8 +389,8 @@ public:
|
|||
// Lua files registered for init of async env, pair of modname + path
|
||||
std::vector<std::pair<std::string, std::string>> m_async_init_files;
|
||||
|
||||
// Serialized data transferred into async envs at init time
|
||||
MutexedVariable<std::string> m_async_globals_data;
|
||||
// Data transferred into async envs at init time
|
||||
std::unique_ptr<PackedValue> m_async_globals_data;
|
||||
|
||||
// Bind address
|
||||
Address m_bind_addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue