aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-09 18:20:10 +0200
committersfan5 <sfan5@live.de>2022-05-10 22:37:42 +0200
commitec9f1575121e3b064b919bca7efddfa8b0fc4e65 (patch)
tree54d87ba45143f9d8d64e3ee3b8c36f6296627bdc /src/server.h
parent7f58887ae33893c981fbdff23d4e1fa4a11c32e4 (diff)
downloadminetest-ec9f1575121e3b064b919bca7efddfa8b0fc4e65.tar.gz
minetest-ec9f1575121e3b064b919bca7efddfa8b0fc4e65.tar.bz2
minetest-ec9f1575121e3b064b919bca7efddfa8b0fc4e65.zip
Use native packer to transfer globals into async env(s)
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h
index ecba30b95..2c21f5dfc 100644
--- a/src/server.h
+++ b/src/server.h
@@ -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;