lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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