def __init__(self, core): """ Constructor. """ self.__pyload = core self._ = core._ self.lock = Lock()
def __init__(self, core): """ Constructor. """ self.pyload = core self.lock = Lock() # PluginName mapped to list of account instances self.accounts = {} self.load_accounts()
def __init__(self): """Initialize this read-write lock.""" # Condition variable, used to signal waiters of a change in object # state. self.__condition = Condition(Lock()) # Initialize with no writers. self.__writer = None self.__writercount = 0 self.__upgradewritercount = 0 self.__pendingwriters = [] # Initialize with no readers. self.__readers = {}
def __init__(self, core): self.pyload = core self.events = {'event': []} self.lock = Lock()
def __init__(self, core): self.lock = Lock() self.pyload = core self.tasks = OrderedDict() #: task store, for all outgoing tasks self.last_clients = {} self.ids = 0 #: uniue interaction ids
def _init_lock(self): self.lock = Lock()
def __init__(self, api): AbstractHandler.__init__(self, api) self.clients = [] self.lock = Lock() self.pyload.evm.listen_to("event", self.add_event)