src/d/r/dramatis-0.1.1/lib/dramatis/runtime/scheduler.py dramatis(Download)
_checkio = False _local = threading.local() _local.dramatis_actor = None # threading._VERBOSE = True
src/c/o/cocktail-0.3.1/cocktail/modeling.py cocktail(Download)
""" import types from copy import copy, deepcopy from threading import local, Lock, RLock from cocktail.typemapping import TypeMapping _thread_data = local()
def __init__(self):
self.__local = local()
@getter
def _items(self):
items = getattr(self.__local, "items", None)
src/v/o/votv-HEAD/trunk/portable/readwritelock.py votv(Download)
def __init__ (self):
self.lock = threading.RLock()
self.write_cond = threading.Condition(self.lock)
self.read_cond = threading.Condition(self.lock)
self.write_waiting = 0
self.read_locked = 0
self.local = threading.local()
src/g/o/google_appengine-HEAD/google/appengine/tools/bulkloader.py google_appengine(Download)
self.input_generator_factory,
progress_generator_factory))
thread_local = threading.local()
thread_local.shut_down = False
def Interrupt(unused_signum, unused_frame):
src/v/o/votv-HEAD/portable/readwritelock.py votv(Download)
def __init__ (self):
self.lock = threading.RLock()
self.write_cond = threading.Condition(self.lock)
self.read_cond = threading.Condition(self.lock)
self.write_waiting = 0
self.read_locked = 0
self.local = threading.local()
src/s/p/Spark-HEAD/src/spark/core/process.py Spark(Download)
class Process(object):
""" A process can execute callables and communicate using messages. """
_lock = threading.RLock()
_processes = {}
_nextID = 1
_current = threading.local()
src/p/u/pushy-0.3/pushy/protocol/baseconnection.py pushy(Download)
}
# Attributes required to track responses.
self.__thread_local = threading.local()
self.__response_handlers = {}
# Attributes required to track number of threads processing requests.
src/f/l/flioops-HEAD/py/trunk/synch.py flioops(Download)
__all__= ['NestedThreadCounter'] from oop.utils.ctx import NestLevelCounter, contextualize from threading import local, Lock, RLock from inspect import isclass, getmembers import types
been entered but not exited in the context of the current thread. """ counters= local() def getNestCnt(self): return NestedThreadCounter.counters.__dict__[self]
src/c/o/cocktail-0.3.1/cocktail/persistence/datastore.py cocktail(Download)
@since: July 2008 """ from types import FunctionType from threading import local, Lock from ZODB import DB import transaction from cocktail.modeling import getter
def __init__(self, storage = None):
self._thread_data = local()
self.__storage_lock = Lock()
self.__db = None
self.__storage = None
self.storage = storage
src/g/o/google-app-engine-HEAD/google/appengine/tools/bulkloader.py google-app-engine(Download)
self.throttle.Register(self.data_source_thread)
thread_local = threading.local()
thread_local.shut_down = False
def Interrupt(unused_signum, unused_frame):
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next