lua-users home
lua-l archive

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


For example, I have implemented lua_lock() and lua_unlock() (using a
recursive mutex) in LuaDura for the following reason.
We at Olivetti are using that application to develop/debug/test our printers.
It is possible for the printer to send asynchronous notifications to
previous commands.
These notifications can me mapped to Lua functions, which will be
called from a different C thread than the main Lua interpreter, so
locking was necessary.