From cba944dec28b9b783c434fbe07d34b6854c64a66 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 7 May 2013 16:29:26 -0400 Subject: [PATCH] constrictor shared thread lock Each script has a thread lock (RLock()) object which can be shared by its threads to manage all its thread locking needs. Signed-off-by: Bill Erickson --- constrictor/script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/constrictor/script.py b/constrictor/script.py index c690d9433..5ba2cbc74 100644 --- a/constrictor/script.py +++ b/constrictor/script.py @@ -25,6 +25,7 @@ from log import * class Script(object): def __init__(self, name=''): self.name = name + self.lock = threading.RLock() def run(self): log_error('Override Script.run() to run a script!') sys.exit(1) -- 2.11.0