Compare commits
120 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b0cb7a853 | |||
| ffaab32d5e | |||
| 946217310f | |||
| b4c3708f50 | |||
| e3ac0951ab | |||
| 42b4e0fcf4 | |||
| f07b1ebb57 | |||
| ea6503d7b2 | |||
| b7a7e5bf16 | |||
| 5ac17f8e59 | |||
| 2b9f732d88 | |||
| 726f55e5c6 | |||
| 91561f7f24 | |||
| 8d843a5958 | |||
| 30db370cc9 | |||
| 0af807a930 | |||
| 9ad2c45b8f | |||
| e7ff234cef | |||
| f540396932 | |||
| 46ace58ab8 | |||
| ef7464f70d | |||
| ad929da484 | |||
| 3d55704726 | |||
| 13221ca47e | |||
| 98198a4af2 | |||
| 5f5723e936 | |||
| a660b63581 | |||
| bab9b13cb8 | |||
| 8c2bde7ed8 | |||
| d50c187710 | |||
| 5359be0772 | |||
| 59cbeb6597 | |||
| bb0592f3eb | |||
| bbaac2d779 | |||
| 9e6552d42e | |||
| afdd98ab13 | |||
| e43fe34a7c | |||
| f4cdde6040 | |||
| cec53f6f4e | |||
| d57dc7dc22 | |||
| 6be948f068 | |||
| c8abadd8d6 | |||
| 15bbec9379 | |||
| befe863846 | |||
| 761e739e18 | |||
| a9673385d9 | |||
| 0b0f971802 | |||
| 755f207554 | |||
| 49a1b944d0 | |||
| 883bdb9830 | |||
| 8a83c617fa | |||
| 06580e0bfa | |||
| 0a72f16e68 | |||
| 721571d1a4 | |||
| 7c95b2e8ca | |||
| a6fac9d1d4 | |||
| 7ba642342d | |||
| acc94ea17e | |||
| 81fc7b95c9 | |||
| 03a2f686a8 | |||
| 96cc41effb | |||
| 8c987b81ab | |||
| 1064d8a1cc | |||
| cd4cc5fd2d | |||
| 614e032aa5 | |||
| b2569118a2 | |||
| d36204c87f | |||
| 660c10ec3b | |||
| c39aa229f8 | |||
| c80f44c68e | |||
| 1b3e3303e9 | |||
| 6fe10b22ab | |||
| 257ed03728 | |||
| 5e2ab9af3d | |||
| d520e0a93a | |||
| 03ecb47f6f | |||
| 3effcb7384 | |||
| 06c31bee85 | |||
| 5c03b34290 | |||
| af38ebbb81 | |||
| de9b08fa2e | |||
| ab9e949b68 | |||
| ea4be86ae2 | |||
| 160c72d2f3 | |||
| 5caa90f6c7 | |||
| a5add93747 | |||
| ec9f7dec61 | |||
| e616b51d6f | |||
| cfa4c0f0b6 | |||
| 9f3b663fa2 | |||
| 4fe428e572 | |||
| 5cc18b04ae | |||
| 33202260e3 | |||
| 189552ac65 | |||
| 42149ffab2 | |||
| 03dbe1ee5b | |||
| 8cf047d713 | |||
| 9e1d31fc2a | |||
| 0e6c30b478 | |||
| d8218f0bf7 | |||
| 45b51c15c7 | |||
| 61b5ea9d14 | |||
| d2cfdfa8e8 | |||
| 8e6d174f20 | |||
| c65b850529 | |||
| a105d8a575 | |||
| 7da192e8dc | |||
| ef9267d8fc | |||
| 0994ee2d2a | |||
| 22f1375380 | |||
| 6ed5555706 | |||
| a7a902acd6 | |||
| 3776fdff9d | |||
| 7114b87bdd | |||
| 0bccc0dd87 | |||
| cf980951a4 | |||
| a81e55f41c | |||
| 5cf3947b15 | |||
| 298529edc2 | |||
| 5137bb9483 |
11
README.md
11
README.md
@ -1,4 +1,11 @@
|
||||
# Multi Version: 16.0.1 - Bug fix
|
||||
# Multi Version: 16.0.0 - Connecting the dots
|
||||
**Key Changes**
|
||||
- Expanded connection logic
|
||||
- New integration priorityManager
|
||||
- Tests for threads
|
||||
- Consistent behavior between the threading integrations
|
||||
- Improved love2d threading
|
||||
- Bug fixes
|
||||
|
||||
Found an issue? Please [submit it](https://github.com/rayaman/multi/issues) and someone will look into it!
|
||||
|
||||
@ -6,7 +13,7 @@ My multitasking library for lua. It is a pure lua binding, with exceptions of th
|
||||
|
||||
</br>
|
||||
|
||||
Progress is being made in [v16.1.0](https://github.com/rayaman/multi/tree/v16.1.0)
|
||||
Progress is being made in [v16.0.0](https://github.com/rayaman/multi/tree/v16.0.0)
|
||||
---
|
||||
|
||||
</br>
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
# Changelog
|
||||
Table of contents
|
||||
---
|
||||
[Update 16.0.1 - Bug fix](#update-1531---bug-fix)</br>
|
||||
[Update 16.0.0 - Connecting the dots](#update-1600---getting-the-priorities-straight)</br>
|
||||
[Update 15.3.1 - Bug fix](#update-1531---bug-fix)</br>
|
||||
[Update 15.3.0 - A world of connections](#update-1530---a-world-of-connections)</br>
|
||||
@ -59,35 +58,6 @@ Table of contents
|
||||
[Update: EventManager 1.0.0 - Error checking](#update-eventmanager-100---error-checking)</br>
|
||||
[Version: EventManager 0.0.1 - In The Beginning things were very different](#version-eventmanager-001---in-the-beginning-things-were-very-different)
|
||||
|
||||
# Update 16.0.1 - Bug fix
|
||||
Fixed
|
||||
---
|
||||
- thread.pushStatus() wasn't properly working when forwarding events from THREAD.pushStatus OnStatus connection. This bug also caused stack overflow errors with the following code
|
||||
```lua
|
||||
func = thread:newFunction(function()
|
||||
for i=1,10 do
|
||||
thread.sleep(1)
|
||||
thread.pushStatus(i)
|
||||
end
|
||||
end)
|
||||
|
||||
func2 = thread:newFunction(function()
|
||||
local ref = func()
|
||||
ref.OnStatus(function(num)
|
||||
-- do stuff with this data
|
||||
|
||||
thread.pushStatus(num*2) -- Technically this is not ran within a thread. This is ran outside of a thread inside the thread handler.
|
||||
end)
|
||||
end)
|
||||
|
||||
local handler = func2()
|
||||
handler.OnStatus(function(num)
|
||||
print(num)
|
||||
end)
|
||||
|
||||
multi:mainloop()
|
||||
```
|
||||
|
||||
# Update 16.0.0 - Getting the priorities straight
|
||||
|
||||
## Added New Integration: **priorityManager**
|
||||
|
||||
5
init.lua
5
init.lua
@ -86,7 +86,7 @@ function multi.getTypes()
|
||||
return types
|
||||
end
|
||||
|
||||
multi.Version = "16.0.1"
|
||||
multi.Version = "16.0.0"
|
||||
multi.Name = "root"
|
||||
multi.NIL = {Type="NIL"}
|
||||
local NIL = multi.NIL
|
||||
@ -447,7 +447,6 @@ function multi:newConnection(protect,func,kill)
|
||||
func = function(...)
|
||||
__CurrentConnectionThread = th
|
||||
fref(...)
|
||||
__CurrentConnectionThread = nil
|
||||
end
|
||||
end
|
||||
table.insert(fast, func)
|
||||
@ -1436,7 +1435,7 @@ local function cleanReturns(...)
|
||||
end
|
||||
|
||||
function thread.pushStatus(...)
|
||||
local t = __CurrentConnectionThread or thread.getRunningThread()
|
||||
local t = thread.getRunningThread() or __CurrentConnectionThread
|
||||
t.statusconnector:Fire(...)
|
||||
end
|
||||
|
||||
|
||||
@ -1,42 +0,0 @@
|
||||
package = "multi"
|
||||
version = "16.0-1"
|
||||
source = {
|
||||
url = "git://github.com/rayaman/multi.git",
|
||||
tag = "v16.0.1",
|
||||
}
|
||||
description = {
|
||||
summary = "Lua Multi tasking library",
|
||||
detailed = [[
|
||||
This library contains many methods for multi tasking. Features non coroutine based multi-tasking, coroutine based multi-tasking, and system threading (Requires use of an integration).
|
||||
Check github for documentation.
|
||||
]],
|
||||
homepage = "https://github.com/rayaman/multi",
|
||||
license = "MIT"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1"
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
["multi"] = "init.lua",
|
||||
["multi.integration.lanesManager"] = "integration/lanesManager/init.lua",
|
||||
["multi.integration.lanesManager.extensions"] = "integration/lanesManager/extensions.lua",
|
||||
["multi.integration.lanesManager.threads"] = "integration/lanesManager/threads.lua",
|
||||
["multi.integration.loveManager"] = "integration/loveManager/init.lua",
|
||||
["multi.integration.loveManager.extensions"] = "integration/loveManager/extensions.lua",
|
||||
["multi.integration.loveManager.threads"] = "integration/loveManager/threads.lua",
|
||||
["multi.integration.loveManager.utils"] = "integration/loveManager/threads.lua",
|
||||
--["multi.integration.lovrManager"] = "integration/lovrManager/init.lua",
|
||||
--["multi.integration.lovrManager.extensions"] = "integration/lovrManager/extensions.lua",
|
||||
--["multi.integration.lovrManager.threads"] = "integration/lovrManager/threads.lua",
|
||||
["multi.integration.pseudoManager"] = "integration/pseudoManager/init.lua",
|
||||
["multi.integration.pseudoManager.extensions"] = "integration/pseudoManager/extensions.lua",
|
||||
["multi.integration.pseudoManager.threads"] = "integration/pseudoManager/threads.lua",
|
||||
["multi.integration.luvitManager"] = "integration/luvitManager.lua",
|
||||
["multi.integration.threading"] = "integration/threading.lua",
|
||||
["multi.integration.sharedExtensions"] = "integration/sharedExtensions/init.lua",
|
||||
["multi.integration.priorityManager"] = "integration/priorityManager/init.lua",
|
||||
--["multi.integration.networkManager"] = "integration/networkManager.lua",
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user