diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2022-02-21 11:30:51 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2022-02-21 11:30:51 +0100 |
commit | baf5414b853524bb20df2b92e4b4e13bb1e425cd (patch) | |
tree | f66565c529558cbc7a23cfd6e503193c8f5e7b9d /src/macros_and_utils.h | |
parent | a147fa3aaf2a60252bd9cfd609ee7b65725d0ce8 (diff) | |
download | lanes-baf5414b853524bb20df2b92e4b4e13bb1e425cd.tar.gz lanes-baf5414b853524bb20df2b92e4b4e13bb1e425cd.tar.bz2 lanes-baf5414b853524bb20df2b92e4b4e13bb1e425cd.zip |
Make allocator threadsafe by default when running LuaJIT, because LuaJIT allocator is not
Diffstat (limited to 'src/macros_and_utils.h')
-rw-r--r-- | src/macros_and_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index dac89d1..e8e725b 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h | |||
@@ -109,4 +109,7 @@ extern char const* debugspew_indent; | |||
109 | #define LUAJIT_FLAVOR 0 | 109 | #define LUAJIT_FLAVOR 0 |
110 | #endif // LUA_JITLIBNAME | 110 | #endif // LUA_JITLIBNAME |
111 | 111 | ||
112 | // after all, it looks like we can use the state allocator for our own usage when running LuaJIT, as long as we mutex-protect it | ||
113 | #define USE_LUA_STATE_ALLOCATOR 1 // (LUAJIT_FLAVOR==0) | ||
114 | |||
112 | #endif // MACROS_AND_UTILS_H | 115 | #endif // MACROS_AND_UTILS_H |