def __init__(self): self._global = [] self._thread_context_lock = ThreadLock() self._thread_context = thread_local() self._greenlet_context_lock = GreenletRLock() self._greenlet_context = greenlet_local() self._cache = {} self._stackop = get_iterator_next_method(count())
def __init__(self): self._global = [] self._context_lock = threading.Lock() self._context = threading.local() self._cache = {} self._stackop = get_iterator_next_method(count())