lanes

threads support

 
 
View on GitHub
Download as .tar.gz
Download as .zip

NOTE: This is just a distribution of Lanes. Lanes is developed here.

local lanes = require'lanes'

Documentation

There's up-to-date Lanes documentation here. Ignore the old site.

LuaJIT notes

  • to use ffi inside lanes you have to require the ffi module inside the lane, since the ffi module cannot be transferred as an upvalue to your lane (you will get an error about "destination transfer database").
    • this also means that other modules that depend on ffi cannot be upvalues and must be required explicitly inside the lane or luajit will crash.