rayaman / multi

My multitasking library for lua
MIT License
27 stars 0 forks source link

Make `THREAD.waitFor(...)` a threadedFunction #66

Closed rayaman closed 8 months ago

rayaman commented 1 year ago

I would have to change the way the lanesManager handles things, since it copies upvalues. THREAD, GLOBAL are already exposed as global vars on the system thread so on the user side you would only need to prevent upvalues from being copied. Perhaps use THREAD, GLOBAL inside the thread and the main thread that calls can use a different variable name.

rayaman commented 1 year ago

This has been implemented for love2d! Getting this to work using lanes will require some changes to how the code works!

rayaman commented 8 months ago

Implemented, was easier than I thought