diff options
Diffstat (limited to 'plugin.video.montreal.greek-tv/resources/lib/workers.py')
-rw-r--r-- | plugin.video.montreal.greek-tv/resources/lib/workers.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugin.video.montreal.greek-tv/resources/lib/workers.py b/plugin.video.montreal.greek-tv/resources/lib/workers.py new file mode 100644 index 0000000..b40a082 --- /dev/null +++ b/plugin.video.montreal.greek-tv/resources/lib/workers.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- + +''' + Tulip routine libraries, based on lambda's lamlib + Author Twilight0 + + License summary below, for more details please read license.txt file + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +''' + + +import threading + + +class Thread(threading.Thread): + + def __init__(self, target, *args): + self._target = target + self._args = args + threading.Thread.__init__(self) + + def run(self): + self._target(*self._args) + |