lua-users home
lua-l archive

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


I'm working on a UPnP library for home automation. It publishes UPnP services based on drivers that interact with hardware. The services are based on a common api so anyone can add a driver for this own hardware. Consider it a generic gateway.Currently it uses coroutines through copas. And besides the pupnp library everything is Lua code.

Problem: in a system with multiple drivers, one bad driver can hang the whole engine

So I'm considering multithreading,  where each driver get it's own Lua state.

The intend is to run the software on embedded hardware. Typical routers or nas devices. 

Lanes might be a good candidate for the job but I don't know its resource usage.

Any ideas, hints or tips?

Thx. 
Thijs

(replying to myself to add a proper subject, sorry for the noise)