[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: GIL
- From: Sean Conner <sean@...>
- Date: Wed, 22 May 2019 14:14:36 -0400
It was thus said that the Great Jim once stated:
> i recently learned that the CPython interpreter uses a
> global interpreter lock. i suppose Lua does not, right ?
Not one by default. And as long as you keep on system thread, one Lua
state, there is no need for one. If, however, you want to share a Lua state
among system threads, you'll need to recompile Lua with an implementation
for the two given functions:
lua_lock()
lua_unlock()
(right now they're do-nothing macros)
-spc