lua-users home
lua-l archive

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


>I've been looking through the code and see various lua_lock and 
>lua_unlock.
>
>How exactly does this lock work? Also why does it need a #ifndef in front 
>of it?

lua_lock and lua_unlock are for applications that need support for
multiple OS threads. See
	http://lua-users.org/lists/lua-l/2002-01/msg00292.html
	http://lua-users.org/lists/lua-l/2003-04/msg00185.html

The #ifndef is there so that you can #define your own versions, which will
depend on your application and your OS.
--lhf