Pass Lua states to other threads in arbitrary multi-threading scenarios

$ luarocks install mtstates

This package provides a way to create new Lua states from within Lua for using them in arbitrary threads. The implementation is independent from the underlying threading library (e.g. Lanes or lua-llthreads2).

The general principle is to prepare a state by running a setup function within this state that returns a callback function which afterwards can be called from different threads. This can be useful in a thread-pool scenario when the number of states exceeds the number of available threads.


scm-0dev1 year ago(revision: 5)1 download
0.4.4-1320 days ago3 downloads
0.4.3-11 year ago6 downloads
0.4.2-11 year ago(revision: 3)24 downloads
0.4.1-14 years ago36 downloads
0.4.0-14 years ago11 downloads
0.3.2-14 years ago5 downloads
0.3.1-14 years ago6 downloads
0.3.0-14 years ago4 downloads
0.2.0-14 years ago4 downloads


lua >= 5.1, <= 5.4