rayaman / multi

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

Move newThread from the processor namespace (multi/processor) into the thread namespace #35

Closed rayaman closed 2 years ago

rayaman commented 2 years ago

This change is rather large and the main issue would be pumping the events. On surface level I could have all processors pump the thread scheduler regardless of where they are. Might not be too difficult to do that. Either way this will not be coming out until version 16.x.x since it's a major change. Change ended up not being too difficult.

rayaman commented 2 years ago

This was changed and a proxy was made for multi:newThread to thread:newThread so no changes have to be made on your end. However, threads on a processor that is paused will still run!

rayaman commented 2 years ago

Threads on a processor that is stopped/paused will also halt! If you want a thread that is independent to what the processor is doing create it using thread:newThread(...)