diff --git a/Documentation.md b/Documentation.md
index bdae9b5..e69de29 100644
--- a/Documentation.md
+++ b/Documentation.md
@@ -1,6 +0,0 @@
-
- Example Code
- ```lua
- -- wonder if this works. if it does then awesome
- ```
-
\ No newline at end of file
diff --git a/README.html b/README.html
index 5743961..4dc2985 100644
--- a/README.html
+++ b/README.html
@@ -9,7 +9,7 @@
-multi Version: 12.2.0 Added better priority management, function chaining, and some bug fixes
My multitasking library for lua. It is a pure lua binding, if you ignore 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 easier to navigate than readme
+multi Version: 12.2.1 Some bug fixes
My multitasking library for lua. It is a pure lua binding, if you ignore 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 easier to navigate than readme
-
INSTALLING
diff --git a/README.md b/README.md
index c99600e..274c614 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# multi Version: 12.2.0 Added better priority management, function chaining, and some bug fixes
+# multi Version: 12.2.1 Some bug fixes
My multitasking library for lua. It is a pure lua binding, if you ignore 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 easier to navigate than readme**
diff --git a/changes.html b/changes.html
index 45240a2..0400d5b 100644
--- a/changes.html
+++ b/changes.html
@@ -12,192 +12,231 @@
Changes
-Update 12.2.0
Added:
+Update 12.2.1 Time for some bug fixes!
Fixed: SystemThreadedJobQueues
+- You can now make as many job queues as you want! Just a warning when using a large amount of cores for the queue it takes a second or 2 to set up the jobqueues for data transfer. I am unsure if this is a lanes thing or not, but love2d has no such delay when setting up the jobqueue!
- You now connect to the OnReady in the jobqueue object. No more holding everything else as you wait for a job queue to be ready
- Jobqueues:doToAll now passes the queues multi interface as the first and currently only argument
- No longer need to use jobqueue.OnReady() The code is smarter and will send the pushed jobs automatically when the threads are ready
Fixed: SystemThreadedConnection
+- They work the exact same way as before, but actually work as expected now. The issue before was how i implemented it. Now each connection knows the number of instances of that object that ecist. This way I no longer have to do fancy timings that may or may not work. I can send exactly enough info for each connection to consume from the queue.
Removed: multi:newQueuer
+- This feature has no real use after corutine based threads were introduced. You can use those to get the same effect as the queuer and do it better too.
Going forward:
+- Will I ever finish steralization? Who knows, but being able to save state would be nice. The main issue is there is no simple way to save state. While I can provide methods to allow one to turn the objects into strings and back, there is no way for me to make your code work with it in a simple way. For now only the basic functions will be here.
- I need to make better documentation for this library as well. In its current state, all I have are examples and not a list of what is what.
Example
package.path="?/init.lua;?.lua;"..package.path
+multi = require("multi")
+GLOBAL, THREAD = require("multi.integration.lanesManager").init()
+jq = multi:newSystemThreadedJobQueue()
+jq:registerJob("test",function(a)
+ return "Hello",a
+end)
+jq.OnJobCompleted(function(ID,...)
+ print(ID,...)
+end)
+for i=1,16 do
+ jq:pushJob("test",5)
+end
+multi:mainloop()
+
Update 12.2.0
Added:
- multi.nextStep(func)
- Method chaining
- Priority 3 has been added!
- ResetPriority() — This will set a flag for a process to be re evaluated for how much of an impact it is having on the performance of the system.
- setting: auto_priority added! — If only lua os.clock was more fine tuned… milliseconds are not enough for this to work
- setting: auto_lowerbound added! — when using auto_priority this will allow you to set the lowbound for pirority. The defualt is a hyrid value that was calculated to reach the max potential with a delay of .001, but can be changed to whatever. Remember this is set to processes that preform really badly! If lua could handle more detail in regards to os.clock() then i would set the value a bit lower like .0005 or something like that
- setting: auto_stretch added! — This is another way to modify the extent of the lowest setting. This reduces the impact that a low preforming process has! Setting this higher reduces the number of times that a process is called. Only in effect when using auto_priotity
- setting: auto_delay added! — sets the time in seconds that the system will recheck for low performing processes and manage them. Will also upgrade a process if it starts to run better.