From bf5078f0bcdcb3472d92f875fb36bccfef732e93 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 25 Jun 2017 19:25:05 -0400 Subject: [PATCH] Typos and minor additions (1.7.5) Added support for more consistant module creator support. Examples to come soon --- README.md | 16 ++++++++++++---- multi/init.lua | 2 +- multi/intergration/lanesManager.lua | 2 ++ multi/intergration/loveManager.lua | 2 ++ 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b39c959..42c45c8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# multi Version: 1.7.4 (Added loveManager to the intergrations) +# multi Version: 1.7.5 (Typos and imporoved module creation supprt, examples to come soon) View Changes: https://github.com/rayaman/multi#changes My multitasking library for lua
@@ -751,13 +751,21 @@ Looping...
We did it! 1 2 3
# Changes +Updated from 1.7.4 to 1.7.5
+Fixed some typos in the readme... (I am sure there are more there are always more) +Added more features for module support +TODO: +Work on performance of the library... I see 3 places where I can make this thing run quicker + +I'll show case some old versions of the multitasking library eventually so you can see its changes in days past! + Updated from 1.7.3 to 1.7.4
Added: the example folder which will be populated with more examples in the near future!
The loveManager intergration that mimics the lanesManager intergration almost exactly to keep coding in both enviroments as close to possible. This is done mostly for library creation support!
An example of the loveManager in action using almost the same code as the lanesintergreationtest2.lua
NOTE: This code has only been tested to work on love2d version 1.10.2 thoough it should work version 0.9.0 ```lua -require("core.Library") +require("core.Library") -- Didn't add this to a repo yet! Will do eventually... Allows for injections and other cool things require("multi.compat.love2d") -- allows for multitasking and binds my libraies to the love2d engine that i am using GLOBAL,sThread=require("multi.intergration.loveManager").init() -- load the love2d version of the lanesManager --IMPORTANT @@ -853,8 +861,8 @@ Updated from 1.6.0 to 1.7.0
Modified: multi.intergration.lanesManager.lua It is now in a stable and simple state Works with the latest lanes version! Tested with version 3.11 I cannot promise that everything will work with eariler versions. Future versions are good though.
Example Usage:
-sThread is a handle to a global interface for threads to interact with themself
-thread is the interfact for multithreads as seen in the threading section
+sThread is a handle to a global interface for system threads to interact with themself
+thread is the interface for multithreads as seen in the threading section
GLOBAL a table that can be used throughout each and every thread diff --git a/multi/init.lua b/multi/init.lua index 0e633de..0d26965 100644 --- a/multi/init.lua +++ b/multi/init.lua @@ -45,7 +45,7 @@ function print(...) end end multi = {} -multi.Version={1,7,2} +multi.Version={1,7,5} multi.stage='stable' multi.__index = multi multi.Mainloop={} diff --git a/multi/intergration/lanesManager.lua b/multi/intergration/lanesManager.lua index 6e61e09..235cbbf 100644 --- a/multi/intergration/lanesManager.lua +++ b/multi/intergration/lanesManager.lua @@ -122,6 +122,8 @@ function multi:newSystemThread(name,func) end print("Intergrated Lanes!") multi.intergration={} -- for module creators +multi.intergration.GLOBAL=GLOBAL +multi.intergration.THREAD=THREAD multi.intergration.lanes={} -- for module creators multi.intergration.lanes.GLOBAL=GLOBAL -- for module creators multi.intergration.lanes.THREAD=THREAD -- for module creators diff --git a/multi/intergration/loveManager.lua b/multi/intergration/loveManager.lua index 1dcb4a1..9fa3986 100644 --- a/multi/intergration/loveManager.lua +++ b/multi/intergration/loveManager.lua @@ -291,6 +291,8 @@ function THREAD.hold(n) multi.OBJ_REF:Resume() end __channels__={} +multi.intergration.GLOBAL=GLOBAL +multi.intergration.THREAD=THREAD updater=multi:newUpdater() updater:OnUpdate(function(self) local data=multi.intergration.love2d.mainChannel:pop()