[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_lock and lua_unlock implementation
- From: Patrick Rapin <toupie300@...>
- Date: Fri, 6 May 2011 17:26:31 +0200
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
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.