From 952b592b971266d6391bfb730a661a5ee9df3d00 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Thu, 24 Dec 2020 12:38:07 -0500 Subject: [PATCH 1/5] Update README.md fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c80ef8..ba34999 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ My multitasking library for lua. It is a pure lua binding, with exceptions of th INSTALLING ---------- -Links to dependicies: +Links to dependencies: [lanes](https://github.com/LuaLanes/lanes) To install copy the multi folder into your environment and you are good to go
From 180176e2cf375e6bac7c19346b24206faad63ede Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Sat, 3 Apr 2021 12:40:33 -0400 Subject: [PATCH 2/5] Updated License date --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 8ec4b67..3b661ec 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Ryan Ward +Copyright (c) 2021 Ryan Ward Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From b60aab96024f9705956c1b19bf0ea474f847844b Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Thu, 29 Apr 2021 15:34:13 -0400 Subject: [PATCH 3/5] Will be coming back to this project Plan on finally getting back to working on the network parallelism. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ba34999..8719382 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Planned features/TODO --------------------- - [x] ~~Finish Documentation~~ Finished - [ ] Network Parallelism rework +- [ ] Fix some bugs Usage: [Check out the documentation for more info](https://github.com/rayaman/multi/blob/master/Documentation.md)
----- From fd8e77555ac9654f0008d9f7be5ada9b1249d645 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Fri, 30 Apr 2021 10:00:13 -0400 Subject: [PATCH 4/5] Testing something --- test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.lua b/test.lua index e8b20d5..b2bcd11 100644 --- a/test.lua +++ b/test.lua @@ -39,6 +39,6 @@ local alarm = multi:newAlarm(4):OnRing(function(a) a:Destroy() print(a.Type) test:Destroy() + print("TEST: ",test) end) - multi:lightloop() \ No newline at end of file From 2d239c65ea5eb61edcefc8feea8ea2d9683c7ce1 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Fri, 30 Apr 2021 10:48:58 -0400 Subject: [PATCH 5/5] tests --- test.lua | 49 +++++++++++-------------------------------------- 1 file changed, 11 insertions(+), 38 deletions(-) diff --git a/test.lua b/test.lua index b2bcd11..95f1378 100644 --- a/test.lua +++ b/test.lua @@ -1,44 +1,17 @@ package.path="?.lua;?/init.lua;?.lua;?/?/init.lua;"..package.path local multi,thread = require("multi"):init() - --- Testing destroying and fixed connections -c = multi:newConnection() -c1 = c(function() - print("called 1") -end) -c2 = c(function() - print("called 2") -end) -c3 = c(function() - print("called 3") -end) - -print(c1,c2.Type,c3) -c:Fire() -c2:Destroy() -print(c1,c2.Type,c3) -c:Fire() -c1:Destroy() -print(c1,c2.Type,c3) -c:Fire() - --- Destroying alarms and threads -local test = multi:newThread(function() +local GLOBAL, THREAD = require("multi.integration.lanesManager"):init() +multi:newSystemThread("test",function(msg) + print("In thread:", THREAD.getID(), "Msg:", msg) + while true do + -- Hold forever :D + end +end,"Passing a message") +multi:newThread("localthread",function() + print("In local thread :D") while true do thread.sleep(1) - print("Hello!") + print("...") end end) - -test.OnDeath(function() - os.exit() -- This is the last thing called. -end) - -local alarm = multi:newAlarm(4):OnRing(function(a) - print(a.Type) - a:Destroy() - print(a.Type) - test:Destroy() - print("TEST: ",test) -end) -multi:lightloop() \ No newline at end of file +multi:mainloop() \ No newline at end of file