Off Topic LuaJIT multithreading LuaJIT multithreading
8 replies Hello, I've been looking for about a month a module for LuaJIT that provides multithreading support (Linux + Windows), I haven't managed to make my own because it seemed too complicated. I'm not going to use Lua lanes or any kind of similar module that needs a .dll or .so because libraries simply aren't supported everywhere, so I just need a FFI based multithreading library. Has anyone made a multithreading library for LuaJIT or either has one that I could use and does not require any dll/so? Maybe converting Lanes source code to FFI equivalent?
Well if you don't want .dll, simply link to it's static library @ MikuAuahDark: Yeah, that went to my mind. But I couldn't start after seeing how many lines of code it had, it might be easier to make a Windows pthread wrapper than rewriting the entire Lua lanes, I guess. Just realised that it doesn't support pthreads (yet). You might port it though. @ DannyDeth: yeah, turns out that there's no pthreads port for LuaJIT anywhere on the internet. Thank you for your help anyway!
In addition to the thread: I'm going to rewrite pthread.h for Windows, but I can't do this all alone because the code seems to be heavy. Would anyone like to help me to rewrite it in a collaborative scripting environment? (In a Cloud9 IDE workspace) Looks good idea, Good luck! ..