diff options
author | kwolekr <kwolekr@minetest.net> | 2015-10-25 00:45:18 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-10-25 23:06:48 -0400 |
commit | 54f1267c2c87daea769966c694777a2e5977f870 (patch) | |
tree | ae08897774c1b1d1ecae0ad1a31b147c9c98dd02 /src/script/lua_api/l_util.cpp | |
parent | 3936a5e3f71d46e61f819b8f6c85dd47a440f21e (diff) | |
download | minetest-54f1267c2c87daea769966c694777a2e5977f870.tar.gz minetest-54f1267c2c87daea769966c694777a2e5977f870.tar.bz2 minetest-54f1267c2c87daea769966c694777a2e5977f870.zip |
SAPI: Mark all Lua API functions requiring envlock
Diffstat (limited to 'src/script/lua_api/l_util.cpp')
-rw-r--r-- | src/script/lua_api/l_util.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index 106edc01e..d5adc7ab0 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -260,6 +260,8 @@ int ModApiUtil::l_is_yes(lua_State *L) int ModApiUtil::l_get_builtin_path(lua_State *L) { + NO_MAP_LOCK_REQUIRED; + std::string path = porting::path_share + DIR_DELIM + "builtin"; lua_pushstring(L, path.c_str()); return 1; @@ -268,6 +270,8 @@ int ModApiUtil::l_get_builtin_path(lua_State *L) // compress(data, method, level) int ModApiUtil::l_compress(lua_State *L) { + NO_MAP_LOCK_REQUIRED; + size_t size; const char *data = luaL_checklstring(L, 1, &size); @@ -287,6 +291,8 @@ int ModApiUtil::l_compress(lua_State *L) // decompress(data, method) int ModApiUtil::l_decompress(lua_State *L) { + NO_MAP_LOCK_REQUIRED; + size_t size; const char *data = luaL_checklstring(L, 1, &size); |