Am Mo., 3. März 2025 um 12:02 Uhr schrieb 'Thijs Schreijer' via lua-l
<
lu...@googlegroups.com>:
> the way I understand it is that the VM is reentrant. So if you use separate "full lua states", 1 per thread, you won't need the locks.
Lua standard definition of lua_lock/unlock is just " ((void) 0)" - so
just "not used".
As I understand it, lua_lock/unlock just "just" help porting the
"reentrant"/"single VM" default scheme of Lua to non-reentrant
multithreading system which work by interrupting each other / running
on multiple cores.
(I anyway hate such systems, you then have to program very carefully,
better use different Lua machines in every thread I would propose).