From 5209ef20a756b6bd59563ba208e8a3f321971571 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 23 Jun 2017 11:41:05 -0400 Subject: [PATCH] Minor changes --- multi/compat/backwards[1,5,0].lua | 23 +++++++ multi/compat/love2d.lua | 23 +++++++ multi/docs/changelog.txt | 97 ----------------------------- multi/docs/features.txt | 56 ----------------- multi/function.lua | 23 +++++++ multi/init.lua | 23 +++++++ multi/intergration/lanesManager.lua | 23 +++++++ multi/step.lua | 23 +++++++ multi/task.lua | 23 +++++++ multi/threading.lua | 23 +++++++ multi/threading/alarm.lua | 23 +++++++ multi/threading/event.lua | 23 +++++++ multi/threading/loop.lua | 23 +++++++ multi/threading/process.lua | 23 +++++++ multi/threading/step.lua | 23 +++++++ multi/threading/tloop.lua | 23 +++++++ multi/threading/tstep.lua | 23 +++++++ multi/threading/updater.lua | 23 +++++++ multi/tloop.lua | 23 +++++++ multi/trigger.lua | 23 +++++++ multi/tstep.lua | 23 +++++++ multi/watcher.lua | 23 +++++++ 22 files changed, 460 insertions(+), 153 deletions(-) delete mode 100644 multi/docs/changelog.txt delete mode 100644 multi/docs/features.txt diff --git a/multi/compat/backwards[1,5,0].lua b/multi/compat/backwards[1,5,0].lua index 4263029..a0f52a8 100644 --- a/multi/compat/backwards[1,5,0].lua +++ b/multi/compat/backwards[1,5,0].lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] multi.OnObjectCreated(function(obj) if obj.Type=="loop" then function obj:Act() diff --git a/multi/compat/love2d.lua b/multi/compat/love2d.lua index c775033..d2d2d5b 100644 --- a/multi/compat/love2d.lua +++ b/multi/compat/love2d.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.all") os.sleep=love.timer.sleep --~ function bin.load(file,s,r) diff --git a/multi/docs/changelog.txt b/multi/docs/changelog.txt deleted file mode 100644 index 923453f..0000000 --- a/multi/docs/changelog.txt +++ /dev/null @@ -1,97 +0,0 @@ -History: EventManager,EventManager+,MultiManager <-- Current After 6.3.0 Versioning scheme was altered. A.0.0 -New in 1.0.0 - Nothing really however a changelog will now be recorded! - version.major.minor -New in 1.1.0 - Changed: multi:newConnection(protect) method - Changed the way you are able to interact with it by adding the __call metamethod - Old usage: - OnUpdate=multi:newConnection() - OnUpdate:connect(function(...) - print("Updating",...) - end) - OnUpdate:Fire(1,2,3) - New usage: notice that connect is no longer needed! Both ways still work! and always will work :) - OnUpdate=multi:newConnection() - OnUpdate(function(...) - print("Updating",...) - end) - OnUpdate:Fire(1,2,3) -New in 1.2.0 (12/31/2016) - Added: - connectionobj.getConnection(name) - returns a list of an instance (or instances) of a single connect made with connectionobj:connect(func,name) or connectionobj(func,name) - if you can orginize data before hand you can route info to certain connections thus saving a lot of cpu time. NOTE: only one name per each connection... you can't have 2 of the same names in a dictonary... the last one will be used - Changed: obj=multi:newConnection() - obj:connect(func,name) and obj(func,name) - Added the name argument to allow indexing specific connection objects... Useful when creating an async library -New in 1.3.0 (1/29/2017) - Added: - Load detection! - multi.threshold -- minimum amount of cycles that all mObjs should be allotted before the Manager is considered burdened. Defualt: 256 - multi.threstimed -- amount of time when counting the number of cycles, Greater gives a more accurate view of the load, but takes more time. Defualt: .001 - multi:setThreshold(n) -- method used to set multi.threshold - multi:setThrestimed(n) -- method used to set multi.threstimed - multi:getLoad() -- returns a number between 0 and 100 -New in 1.4.0 (3/20/2017) - Added: - multiobj:reallocate(ProcessObj) -- changes the parent process of an object - ProcessObj:getController() -- returns the mThread so you can opperate on it like a multiobj - Example1: - require("multimanager") -- require the library - int1=multi:newProcess() -- create a process - int1.NAME="int1" -- give it a name for example purposes - int2=multi:newProcess() -- create another process to reallocate - int2.NAME="int2" -- name this a different name - step=int1:newTStep(1,10) -- create a TStep so we can slowly see what is going on - step:OnStep(function(p,s) -- connect to the onstep event - print(p,s.Parent.NAME) -- print the position and process name - end) - step:OnEnd(function(s) -- when the step ends lets reallocate it to the other process - if s.Parent.NAME=="int1" then -- lets only do this if it is in the int1 process - s:reallocate(int2) -- send it to int2 - s:Reset() -- reset the object - else - print("We are done!") - os.exit() -- end the program when int2 did its thing - end - end) - int1:Start() -- start process 1 - int2:Start() -- start process 2 - multi:mainloop() -- start the main loop - Fixed/Updated: - queuer=multi:newQueuer([string: file]) - Alarms now preform as they should on a queuer - Example2: - int=multi:newQueuer() - step=int:newTStep(1,10,1,.5) - alarm=int:newAlarm(2) - step2=int:newTStep(1,5,1,.5) - step:OnStep(function(p,s) - print(p) - end) - step2:OnStep(function(p,s) - print(p,"!") - end) - alarm:OnRing(function(a) - print("Ring1!!!") - end) - int:OnQueueCompleted(function(s) - s:Pause() - print("Done!") - os.exit() - end) - int:Start() - multi:mainloop() -New in 1.4.1 (4/10/2017) - Change: - small change to the hold method to make it a bit more lightweight - Using a timer instead of an alarm object! - Limits to hold: - cannot hold more than 1 object at a time, and doing so could cause a deadlock! - Upcomming: - Threaded objects wrapped in corutines, so you can hold/sleep without problems! -New in 1.5.1 (6/2/2017) - Added: - Threaded objects - TLoop \ No newline at end of file diff --git a/multi/docs/features.txt b/multi/docs/features.txt deleted file mode 100644 index 0b6b8a0..0000000 --- a/multi/docs/features.txt +++ /dev/null @@ -1,56 +0,0 @@ -'Current Version: A.4.1 stable -MultiManager has 19 Objects: # indicates most commonly used 1-19 1 being the most used by me -+Events #7 -+Alarms #2 -+Loops #3 -+Steps #4 -+TSteps #6 -+Triggers #16 -+Tasks #12 -+Connections #1 -- This is a rather new feature of this library, but has become the most useful for async handling. Knowing this is already 50% of this library -+Timers #14 -- this was tricky because these make up both Alarms and TSteps, but in purly using this standalone is almost non existent -+Jobs #11 -+Process #10 -+Conditions #15 -+Ranges #8 -+Threads #13 -+Functions #5 -+Queuers #17 -+Updaters #9 -+Watchers #18 -+CustomObjects #19 - -Constructors [Runners] ----------------------- Note: multi is the main Processor Obj It cannot be paused or destroyed (kinda) -ProcessObj=multi:newProcess([string: FILE defualt: nil]) -ProcessObj=multi:newQueuer([string: FILE defualt: nil]) - -NOTE: The multi namespace is also a ProcessObj - - -Constructors [ACTORS] ---------------------- Note: everything is a multiObj! -eventObj=multi:newEvent([function: TASK defualt: function() end]) -alarmObj=multi:newAlarm([number: SET defualt: 0]) -loopObj=multi:newLoop([function: FUNC]) -tloopObj=multi:newTLoop([function: FUNC], number: n) -stepObj=multi:newStep([number: START defualt: 0],[number: RESET defualt: inf],[number: COUNT defualt: 1],[number: SKIP defualt: 0]) -tstepObj=multi:newTStep([number: START defualt: 0],[number: RESET defualt: inf],[number: COUNT defualt: 1],[number: SET defualt: 1]) -updaterObj=multi:newUpdater([number: SKIP defualt: 0]) -watcherObj=multi:newWatcher(table: NAMESPACE,string: NAME) -multiObj=multi:newCustomObject([table: OBJREF],[string: T='process']) - -Constructors [Semi-ACTORS] --------------------------- -multi:newJob(function: func,[string: name]) -multi:newRange(number: a,number: b,[number: c]) -multi:newCondition(func) -void=multi:newThread(string: name,function: func) - -Constructors [NON-ACTORS] -------------------------- -multi:newTrigger(function: func) -multi:newTask(function: func) -multi:newConnection() -multi:newTimer() -multi:newFunction(function: func) diff --git a/multi/function.lua b/multi/function.lua index 8ddbdf7..4c4effa 100644 --- a/multi/function.lua +++ b/multi/function.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newFunction(func) local c={} diff --git a/multi/init.lua b/multi/init.lua index 6783b3a..093c1a7 100644 --- a/multi/init.lua +++ b/multi/init.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] if table.unpack then unpack=table.unpack end diff --git a/multi/intergration/lanesManager.lua b/multi/intergration/lanesManager.lua index 650abad..6e61e09 100644 --- a/multi/intergration/lanesManager.lua +++ b/multi/intergration/lanesManager.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] function os.getOS() if package.config:sub(1,1)=='\\' then return 'windows' diff --git a/multi/step.lua b/multi/step.lua index 977e1fe..42e96b7 100644 --- a/multi/step.lua +++ b/multi/step.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newStep(start,reset,count,skip) local c=self:newBase() diff --git a/multi/task.lua b/multi/task.lua index 3c266bc..ae0c143 100644 --- a/multi/task.lua +++ b/multi/task.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newTask(func) table.insert(self.Tasks,func) diff --git a/multi/threading.lua b/multi/threading.lua index fc4dccb..42070ce 100644 --- a/multi/threading.lua +++ b/multi/threading.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.updater") thread={} multi.GlobalVariables={} diff --git a/multi/threading/alarm.lua b/multi/threading/alarm.lua index 1e90ea2..0b10c7c 100644 --- a/multi/threading/alarm.lua +++ b/multi/threading/alarm.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedAlarm(name,set) local c=self:newTBase() diff --git a/multi/threading/event.lua b/multi/threading/event.lua index 75c6749..b8fc6ed 100644 --- a/multi/threading/event.lua +++ b/multi/threading/event.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedEvent(name,task) local c=self:newTBase() diff --git a/multi/threading/loop.lua b/multi/threading/loop.lua index 6b3e623..175fd80 100644 --- a/multi/threading/loop.lua +++ b/multi/threading/loop.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedLoop(name,func) local c=self:newTBase() diff --git a/multi/threading/process.lua b/multi/threading/process.lua index 09ff660..99c3b51 100644 --- a/multi/threading/process.lua +++ b/multi/threading/process.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedProcess(name) local c = {} diff --git a/multi/threading/step.lua b/multi/threading/step.lua index bfe37d4..e69543a 100644 --- a/multi/threading/step.lua +++ b/multi/threading/step.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedStep(name,start,reset,count,skip) local c=self:newTBase() diff --git a/multi/threading/tloop.lua b/multi/threading/tloop.lua index ed66c0a..aa438be 100644 --- a/multi/threading/tloop.lua +++ b/multi/threading/tloop.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedTLoop(name,func,n) local c=self:newTBase() diff --git a/multi/threading/tstep.lua b/multi/threading/tstep.lua index 9236dcc..34bc226 100644 --- a/multi/threading/tstep.lua +++ b/multi/threading/tstep.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedTStep(name,start,reset,count,set) local c=self:newTBase() diff --git a/multi/threading/updater.lua b/multi/threading/updater.lua index d117038..e87e78e 100644 --- a/multi/threading/updater.lua +++ b/multi/threading/updater.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi.threading") function multi:newThreadedUpdater(name,skip) local c=self:newTBase() diff --git a/multi/tloop.lua b/multi/tloop.lua index a3d205f..6abd884 100644 --- a/multi/tloop.lua +++ b/multi/tloop.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newTLoop(func,set) local c=self:newBase() diff --git a/multi/trigger.lua b/multi/trigger.lua index 8aafc98..d292708 100644 --- a/multi/trigger.lua +++ b/multi/trigger.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newTrigger(func) local c={} diff --git a/multi/tstep.lua b/multi/tstep.lua index abfb8cf..e97ae01 100644 --- a/multi/tstep.lua +++ b/multi/tstep.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newTStep(start,reset,count,set) local c=self:newBase() diff --git a/multi/watcher.lua b/multi/watcher.lua index 31a3483..84e94a7 100644 --- a/multi/watcher.lua +++ b/multi/watcher.lua @@ -1,3 +1,26 @@ +--[[ +MIT License + +Copyright (c) 2017 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]] require("multi") function multi:newWatcher(namespace,name) local function WatcherObj(ns,n)