Пример #1
0
 def __init__(self):
     super(MemoryJobBoard, self).__init__()
     self._event = threading.Event()
     # Locking to ensure that if there are multiple
     # users posting to the backing board that we only
     # have 1 writer modifying it at a time, but we can
     # have X readers.
     self._lock = utils.ReaderWriterLock()
     self._board = []
     self._closed = False
Пример #2
0
 def __init__(self, name, wf, fd_id=None):
     super(MemoryFlowDetail, self).__init__(name, wf, fd_id)
     self._lock = utils.ReaderWriterLock()
Пример #3
0
 def __init__(self, name, wf_id=None):
     super(MemoryFlow, self).__init__(name, wf_id)
     self._lock = utils.ReaderWriterLock()
     self.flowdetails = {}
Пример #4
0
 def __init__(self, name, lb_id=None):
     super(MemoryLogBook, self).__init__(name, lb_id)
     self._lock = utils.ReaderWriterLock()
Пример #5
0
 def __init__(self, name, job_id=None):
     super(MemoryJob, self).__init__(name, job_id)
     self._lock = utils.ReaderWriterLock()
Пример #6
0
 def __init__(self, name, task, td_id=None):
     super(MemoryTaskDetail, self).__init__(name, task, td_id)
     self._lock = utils.ReaderWriterLock()