lua-users home
lua-l archive

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


>  I want to implement a reentrantable library for Lua, and use it in the same Lua virtual machine with multiple instances. but I don't know how to do it, does anybody has same experience with it,  maybe you can give me some useful tips.

All C libraries for Lua should be reentrant. That means that they should not
rely on any global or static data. See the code for the standard Lua libraries
and also for instance my own libraries at
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/