diff --git a/README.html b/README.html index 82e9b49..b06c853 100644 --- a/README.html +++ b/README.html @@ -9,8 +9,8 @@ -

multi Version: 1.8.7 (A wrapper for timers! Small update)

NOTE: I have been studying a lot about threading in the past few weeks and have some awesome additions in store! They will take a while to come out though. The goal of the library is still to provide a simple and efficient way to multi task in lua

Upcoming Plans: Adding network support for threading. Kinda like your own lua cloud. This will require the bin, net, and multi library. Once that happens I will include those libraries as a set. This also means that you can expect both a stand alone and joined versions of the libraries.

In Changes you’ll find documentation for(In Order):

My multitasking library for lua. It is a pure lua binding if you ingore the integrations and the love2d compat. If you find any bugs or have any issues please let me know :). If you don’t see a table of contents try using the ReadMe.html file. It is eaiser to navigate the readme

Known Bugs/Issues

In regards to integrations, thread cancellation works slightly different for love2d and lanes. Within love2d I was unable to (To lazy to…) not use the multi library within the thread. A fix for this is to call multi:Stop() when you are done with your threaded code! This may change however if I find a way to work around this. In love2d in order to mimic the GLOBAL table I needed the library to constantly sync tha data… You can use the sThread.waitFor(varname), or sThread.hold(func) methods to sync the globals, to get the value instead of using GLOBAL and this could work. If you want to go this route I suggest setting multi.isRunning=true to prevent the auto runner from doing its thing! This will make the multi manager no longer function, but thats the point :P

Another bug concerns the SystemThreadedJobQueue, Only 1 can be used for now… Creating more may not be a good idea.

And systemThreadedTables only supports 1 table between the main and worker thread! They do not work when shared between 2 or more threads. If you need that much flexiblity ust the GLOBAL table that all threads have.

For module creators using this library. I suggest using SystemThreadedQueues for data transfer instead of SystemThreadedTables for rapid data transfer, If you plan on having Constants that will always be the same then a table is a good idea! They support up to n threads and can be messed with and abused as much as you want :D

Love2D SystemThreadedTAbles do not send love2d userdata, use queues instead for that!

Usage:

function<
     end
 end)
 multi:mainloop()
-

Output (Change the value inc as indicated in the comment to see the outcomes!)

Looping…

Looping…

Looping…

Looping…

Looping…

Looping…

Looping…

Looping…

Looping…

Loop timed out! tloop Trying again…

Looping…

Looping…

Looping…

Looping…

Looping…

We did it! 1 2 3

Changes

Update: 1.8.7

Added: