mtstates

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.

Versions

scm-0dev361 days ago1 download
0.4.1-1195 days ago24 downloads
0.4.0-1332 days ago8 downloads
0.3.2-1336 days ago2 downloads
0.3.1-1339 days ago3 downloads
0.3.0-1350 days ago1 download
0.2.0-1356 days ago1 download

Dependencies

lua >= 5.1, < 5.4

Labels

Manifests