Example #1
0
 def __init__(self, core):
     """
     Constructor.
     """
     self.__pyload = core
     self._ = core._
     self.lock = Lock()
Example #2
0
    def __init__(self, core):
        """
        Constructor.
        """
        self.pyload = core
        self.lock = Lock()

        # PluginName mapped to list of account instances
        self.accounts = {}

        self.load_accounts()
Example #3
0
    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 = {}
Example #4
0
 def __init__(self, core):
     self.pyload = core
     self.events = {'event': []}
     self.lock = Lock()
Example #5
0
 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
Example #6
0
 def _init_lock(self):
     self.lock = Lock()
Example #7
0
    def __init__(self, api):
        AbstractHandler.__init__(self, api)
        self.clients = []
        self.lock = Lock()

        self.pyload.evm.listen_to("event", self.add_event)