ez-a-sync 0.24.13__tar.gz → 0.24.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/PKG-INFO +1 -1
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/_smart.py +3 -2
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/prio_semaphore.c +70 -91
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/prio_semaphore.pyx +1 -1
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/ez_a_sync.egg-info/PKG-INFO +1 -1
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.coverage +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.github/workflows/black.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.github/workflows/codeql.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.github/workflows/docs.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.github/workflows/mypy.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.github/workflows/pytest.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.github/workflows/release.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.gitignore +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/.sourcery.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/LICENSE.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/MANIFEST.in +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/Makefile +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/README.md +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/TODO +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/ENVIRONMENT_VARIABLES.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/__init__.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/_typing.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_descriptor.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_flags.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_flags.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_flags.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_helpers.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_helpers.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_helpers.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_helpers.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_kwargs.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_kwargs.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_kwargs.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/_meta.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/abstract.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/abstract.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/abstract.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/base.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/base.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/base.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/config.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/decorator.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/flags.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/function.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/function.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/function.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/method.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/method.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/method.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/method.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/cache/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/cache/memory.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/limiter.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/manager.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/manager.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/manager.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/modifiers/semaphores.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/property.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/property.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/property.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/a_sync/singleton.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/aliases.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/as_completed.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/as_completed.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/as_completed.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/as_completed.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/create_task.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/create_task.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/create_task.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/create_task.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/gather.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/gather.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/asyncio/gather.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/exceptions.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/executor.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/future.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/iter.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/iter.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/iter.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/__init__.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_debug.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_debug.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_debug.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_debug.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_loggable.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_loggable.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_loggable.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/_loggable.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/__init__.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/counter.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/counter.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/counter.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/counter.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/event.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/event.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/event.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/event.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/prio_semaphore.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/prio_semaphore.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/semaphore.c +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/semaphore.pxd +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/semaphore.pyi +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/locks/semaphore.pyx +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/primitives/queue.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/py.typed +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/sphinx/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/sphinx/ext.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/task.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/utils/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/a_sync/utils/iterators.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/Makefile +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/alabaster.css +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/basic.css +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/custom.css +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/doctools.js +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/documentation_options.js +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/file.png +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/language_data.js +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/minus.png +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/plus.png +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/pygments.css +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/searchtools.js +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/_build/html/_static/sphinx_highlight.js +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/conf.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/index.rst +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/docs/make.bat +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/ez_a_sync.egg-info/SOURCES.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/ez_a_sync.egg-info/dependency_links.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/ez_a_sync.egg-info/not-zip-safe +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/ez_a_sync.egg-info/requires.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/ez_a_sync.egg-info/top_level.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/pyproject.yaml +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/requirements-dev.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/requirements.txt +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/setup.cfg +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/setup.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/__init__.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_abstract.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_base.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_cache.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_decorator.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_limiter.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_meta.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_modified.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/a_sync/test_singleton.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/asyncio/test_as_completed.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/asyncio/test_create_task.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/asyncio/test_gather.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/conftest.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/executor.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/fixtures.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/primitives/test_counter.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/primitives/test_event.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/primitives/test_prio_semaphore.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/primitives/test_queue.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/primitives/test_semaphore.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/task/test_task.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/task/test_task_mapping_views.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/test_executor.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/test_future.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/test_helpers.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/test_iter.py +0 -0
- {ez_a_sync-0.24.13 → ez_a_sync-0.24.14}/tests/test_smart.py +0 -0
|
@@ -6,6 +6,7 @@ to protect tasks from cancellation.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import asyncio
|
|
9
|
+
import contextvars
|
|
9
10
|
import logging
|
|
10
11
|
import warnings
|
|
11
12
|
import weakref
|
|
@@ -197,7 +198,7 @@ class SmartFuture(_SmartFutureMixin[T], asyncio.Future):
|
|
|
197
198
|
if key:
|
|
198
199
|
self._key = key
|
|
199
200
|
self._waiters = weakref.WeakSet()
|
|
200
|
-
self.
|
|
201
|
+
self._callbacks.append((SmartFuture._self_done_cleanup_callback, contextvars.copy_context()))
|
|
201
202
|
|
|
202
203
|
def __repr__(self):
|
|
203
204
|
return f"<{type(self).__name__} key={self._key} waiters={self.num_waiters} {self._state}>"
|
|
@@ -298,7 +299,7 @@ class SmartTask(_SmartFutureMixin[T], asyncio.Task):
|
|
|
298
299
|
"""
|
|
299
300
|
asyncio.Task.__init__(self, coro, loop=loop, name=name)
|
|
300
301
|
self._waiters: Set["asyncio.Task[T]"] = set()
|
|
301
|
-
self.
|
|
302
|
+
self._callbacks.append((SmartTask._self_done_cleanup_callback, contextvars.copy_context()))
|
|
302
303
|
|
|
303
304
|
|
|
304
305
|
def smart_task_factory(
|
|
@@ -3424,12 +3424,12 @@ static const char __pyx_k_manager_s_has_no_more_waiters_po[] = "manager %s has n
|
|
|
3424
3424
|
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
|
|
3425
3425
|
static const char __pyx_k_AbstractPrioritySemaphoreContex_2[] = "_AbstractPrioritySemaphoreContextManager.__acquire";
|
|
3426
3426
|
static const char __pyx_k_AbstractPrioritySemaphoreContex_3[] = "_AbstractPrioritySemaphoreContextManager__waiters";
|
|
3427
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_4[] = "
|
|
3428
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_5[] = "_AbstractPrioritySemaphoreContextManager";
|
|
3429
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_6[] = "_AbstractPrioritySemaphoreContextManager
|
|
3430
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_7[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3431
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_8[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3432
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_9[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3427
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_4[] = "_AbstractPrioritySemaphoreContextManager";
|
|
3428
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_5[] = "_AbstractPrioritySemaphoreContextManager[Priority]";
|
|
3429
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_6[] = "_AbstractPrioritySemaphoreContextManager._repr_no_parent_";
|
|
3430
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_7[] = "_AbstractPrioritySemaphoreContextManager.acquire";
|
|
3431
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_8[] = "_AbstractPrioritySemaphoreContextManager.release";
|
|
3432
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_9[] = "_AbstractPrioritySemaphoreContextManager.__reduce_cython__";
|
|
3433
3433
|
static const char __pyx_k_AbstractPrioritySemaphore___aen_2[] = "_AbstractPrioritySemaphore.__aenter__ (line 84)";
|
|
3434
3434
|
static const char __pyx_k_AbstractPrioritySemaphore___aex_2[] = "_AbstractPrioritySemaphore.__aexit__ (line 96)";
|
|
3435
3435
|
static const char __pyx_k_AbstractPrioritySemaphore__wake_2[] = "_AbstractPrioritySemaphore._wake_up_next (line 189)";
|
|
@@ -3439,12 +3439,11 @@ static const char __pyx_k_AbstractPrioritySemaphore_locke_2[] = "_AbstractPriori
|
|
|
3439
3439
|
static const char __pyx_k_PrioritySemaphoreContextManager_2[] = "_PrioritySemaphoreContextManager.__reduce_cython__";
|
|
3440
3440
|
static const char __pyx_k_PrioritySemaphoreContextManager_3[] = "_PrioritySemaphoreContextManager.__setstate_cython__";
|
|
3441
3441
|
static const char __pyx_k_PrioritySemaphoreContextManager_4[] = "_PrioritySemaphoreContextManager.__lt__ (line 400)";
|
|
3442
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_10[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3443
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_11[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3444
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_12[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3445
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_13[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3446
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_14[] = "_AbstractPrioritySemaphoreContextManager.
|
|
3447
|
-
static const char __pyx_k_AbstractPrioritySemaphoreContex_15[] = "_AbstractPrioritySemaphoreContextManager.release (line 368)";
|
|
3442
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_10[] = "_AbstractPrioritySemaphoreContextManager.__setstate_cython__";
|
|
3443
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_11[] = "_AbstractPrioritySemaphoreContextManager.__init__ (line 266)";
|
|
3444
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_12[] = "_AbstractPrioritySemaphoreContextManager.__lt__ (line 304)";
|
|
3445
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_13[] = "_AbstractPrioritySemaphoreContextManager.acquire (line 325)";
|
|
3446
|
+
static const char __pyx_k_AbstractPrioritySemaphoreContex_14[] = "_AbstractPrioritySemaphoreContextManager.release (line 368)";
|
|
3448
3447
|
static const char __pyx_k_a_sync_primitives_locks_prio_sem_2[] = "a_sync/primitives/locks/prio_semaphore.pyx";
|
|
3449
3448
|
/* #### Code section: decls ### */
|
|
3450
3449
|
static PyObject *__pyx_pf_6a_sync_10primitives_5locks_14prio_semaphore_8Priority___lt__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_other); /* proto */
|
|
@@ -3557,16 +3556,15 @@ typedef struct {
|
|
|
3557
3556
|
PyObject *__pyx_n_s_AbstractPrioritySemaphore;
|
|
3558
3557
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex;
|
|
3559
3558
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_10;
|
|
3560
|
-
PyObject *
|
|
3559
|
+
PyObject *__pyx_kp_u_AbstractPrioritySemaphoreContex_11;
|
|
3561
3560
|
PyObject *__pyx_kp_u_AbstractPrioritySemaphoreContex_12;
|
|
3562
3561
|
PyObject *__pyx_kp_u_AbstractPrioritySemaphoreContex_13;
|
|
3563
3562
|
PyObject *__pyx_kp_u_AbstractPrioritySemaphoreContex_14;
|
|
3564
|
-
PyObject *__pyx_kp_u_AbstractPrioritySemaphoreContex_15;
|
|
3565
3563
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_2;
|
|
3566
3564
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_3;
|
|
3567
3565
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_4;
|
|
3568
|
-
PyObject *
|
|
3569
|
-
PyObject *
|
|
3566
|
+
PyObject *__pyx_kp_u_AbstractPrioritySemaphoreContex_5;
|
|
3567
|
+
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_6;
|
|
3570
3568
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_7;
|
|
3571
3569
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_8;
|
|
3572
3570
|
PyObject *__pyx_n_s_AbstractPrioritySemaphoreContex_9;
|
|
@@ -3867,16 +3865,15 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3867
3865
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphore);
|
|
3868
3866
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex);
|
|
3869
3867
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_10);
|
|
3870
|
-
Py_CLEAR(clear_module_state->
|
|
3868
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_11);
|
|
3871
3869
|
Py_CLEAR(clear_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_12);
|
|
3872
3870
|
Py_CLEAR(clear_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_13);
|
|
3873
3871
|
Py_CLEAR(clear_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_14);
|
|
3874
|
-
Py_CLEAR(clear_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_15);
|
|
3875
3872
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_2);
|
|
3876
3873
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_3);
|
|
3877
3874
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_4);
|
|
3878
|
-
Py_CLEAR(clear_module_state->
|
|
3879
|
-
Py_CLEAR(clear_module_state->
|
|
3875
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_5);
|
|
3876
|
+
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_6);
|
|
3880
3877
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_7);
|
|
3881
3878
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_8);
|
|
3882
3879
|
Py_CLEAR(clear_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_9);
|
|
@@ -4155,16 +4152,15 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4155
4152
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphore);
|
|
4156
4153
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex);
|
|
4157
4154
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_10);
|
|
4158
|
-
Py_VISIT(traverse_module_state->
|
|
4155
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_11);
|
|
4159
4156
|
Py_VISIT(traverse_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_12);
|
|
4160
4157
|
Py_VISIT(traverse_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_13);
|
|
4161
4158
|
Py_VISIT(traverse_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_14);
|
|
4162
|
-
Py_VISIT(traverse_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_15);
|
|
4163
4159
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_2);
|
|
4164
4160
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_3);
|
|
4165
4161
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_4);
|
|
4166
|
-
Py_VISIT(traverse_module_state->
|
|
4167
|
-
Py_VISIT(traverse_module_state->
|
|
4162
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_AbstractPrioritySemaphoreContex_5);
|
|
4163
|
+
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_6);
|
|
4168
4164
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_7);
|
|
4169
4165
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_8);
|
|
4170
4166
|
Py_VISIT(traverse_module_state->__pyx_n_s_AbstractPrioritySemaphoreContex_9);
|
|
@@ -4459,16 +4455,15 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4459
4455
|
#define __pyx_n_s_AbstractPrioritySemaphore __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphore
|
|
4460
4456
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex
|
|
4461
4457
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_10 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_10
|
|
4462
|
-
#define
|
|
4458
|
+
#define __pyx_kp_u_AbstractPrioritySemaphoreContex_11 __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphoreContex_11
|
|
4463
4459
|
#define __pyx_kp_u_AbstractPrioritySemaphoreContex_12 __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphoreContex_12
|
|
4464
4460
|
#define __pyx_kp_u_AbstractPrioritySemaphoreContex_13 __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphoreContex_13
|
|
4465
4461
|
#define __pyx_kp_u_AbstractPrioritySemaphoreContex_14 __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphoreContex_14
|
|
4466
|
-
#define __pyx_kp_u_AbstractPrioritySemaphoreContex_15 __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphoreContex_15
|
|
4467
4462
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_2 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_2
|
|
4468
4463
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_3 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_3
|
|
4469
4464
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_4 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_4
|
|
4470
|
-
#define
|
|
4471
|
-
#define
|
|
4465
|
+
#define __pyx_kp_u_AbstractPrioritySemaphoreContex_5 __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphoreContex_5
|
|
4466
|
+
#define __pyx_n_s_AbstractPrioritySemaphoreContex_6 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_6
|
|
4472
4467
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_7 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_7
|
|
4473
4468
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_8 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_8
|
|
4474
4469
|
#define __pyx_n_s_AbstractPrioritySemaphoreContex_9 __pyx_mstate_global->__pyx_n_s_AbstractPrioritySemaphoreContex_9
|
|
@@ -9839,7 +9834,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
9839
9834
|
__Pyx_TraceCall("__acquire", __pyx_f[0], 349, 0, __PYX_ERR(0, 349, __pyx_L1_error));
|
|
9840
9835
|
switch (__pyx_generator->resume_label) {
|
|
9841
9836
|
case 0: goto __pyx_L3_first_run;
|
|
9842
|
-
case 1: goto
|
|
9837
|
+
case 1: goto __pyx_L15_resume_from_await;
|
|
9843
9838
|
default: /* CPython raises the right error here */
|
|
9844
9839
|
__Pyx_TraceReturn(Py_None, 0);
|
|
9845
9840
|
__Pyx_RefNannyFinishContext();
|
|
@@ -9865,7 +9860,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
9865
9860
|
* while self._parent._Semaphore__value <= 0:
|
|
9866
9861
|
* if self._AbstractPrioritySemaphoreContextManager__waiters is None: # <<<<<<<<<<<<<<
|
|
9867
9862
|
* self._AbstractPrioritySemaphoreContextManager__waiters = deque()
|
|
9868
|
-
* fut =
|
|
9863
|
+
* fut = self._c_get_loop().create_future()
|
|
9869
9864
|
*/
|
|
9870
9865
|
__Pyx_TraceLine(352,0,__PYX_ERR(0, 352, __pyx_L1_error))
|
|
9871
9866
|
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self), __pyx_n_s_AbstractPrioritySemaphoreContex_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 352, __pyx_L1_error)
|
|
@@ -9878,7 +9873,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
9878
9873
|
* while self._parent._Semaphore__value <= 0:
|
|
9879
9874
|
* if self._AbstractPrioritySemaphoreContextManager__waiters is None:
|
|
9880
9875
|
* self._AbstractPrioritySemaphoreContextManager__waiters = deque() # <<<<<<<<<<<<<<
|
|
9881
|
-
* fut =
|
|
9876
|
+
* fut = self._c_get_loop().create_future()
|
|
9882
9877
|
* self._AbstractPrioritySemaphoreContextManager__waiters.append(fut)
|
|
9883
9878
|
*/
|
|
9884
9879
|
__Pyx_TraceLine(353,0,__PYX_ERR(0, 353, __pyx_L1_error))
|
|
@@ -9914,35 +9909,20 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
9914
9909
|
* while self._parent._Semaphore__value <= 0:
|
|
9915
9910
|
* if self._AbstractPrioritySemaphoreContextManager__waiters is None: # <<<<<<<<<<<<<<
|
|
9916
9911
|
* self._AbstractPrioritySemaphoreContextManager__waiters = deque()
|
|
9917
|
-
* fut =
|
|
9912
|
+
* fut = self._c_get_loop().create_future()
|
|
9918
9913
|
*/
|
|
9919
9914
|
}
|
|
9920
9915
|
|
|
9921
9916
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":354
|
|
9922
9917
|
* if self._AbstractPrioritySemaphoreContextManager__waiters is None:
|
|
9923
9918
|
* self._AbstractPrioritySemaphoreContextManager__waiters = deque()
|
|
9924
|
-
* fut =
|
|
9919
|
+
* fut = self._c_get_loop().create_future() # <<<<<<<<<<<<<<
|
|
9925
9920
|
* self._AbstractPrioritySemaphoreContextManager__waiters.append(fut)
|
|
9926
9921
|
* self._parent._potential_lost_waiters.append(fut)
|
|
9927
9922
|
*/
|
|
9928
9923
|
__Pyx_TraceLine(354,0,__PYX_ERR(0, 354, __pyx_L1_error))
|
|
9929
|
-
|
|
9930
|
-
__Pyx_GOTREF(
|
|
9931
|
-
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 354, __pyx_L1_error)
|
|
9932
|
-
if (!__pyx_t_1) {
|
|
9933
|
-
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
9934
|
-
} else {
|
|
9935
|
-
__Pyx_INCREF(__pyx_t_4);
|
|
9936
|
-
__pyx_t_3 = __pyx_t_4;
|
|
9937
|
-
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
9938
|
-
goto __pyx_L7_bool_binop_done;
|
|
9939
|
-
}
|
|
9940
|
-
__pyx_t_4 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager *)__pyx_cur_scope->__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._c_get_loop(((struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin *)__pyx_cur_scope->__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 354, __pyx_L1_error)
|
|
9941
|
-
__Pyx_GOTREF(__pyx_t_4);
|
|
9942
|
-
__Pyx_INCREF(__pyx_t_4);
|
|
9943
|
-
__pyx_t_3 = __pyx_t_4;
|
|
9944
|
-
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
9945
|
-
__pyx_L7_bool_binop_done:;
|
|
9924
|
+
__pyx_t_3 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager *)__pyx_cur_scope->__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._c_get_loop(((struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin *)__pyx_cur_scope->__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 354, __pyx_L1_error)
|
|
9925
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
9946
9926
|
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_create_future); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 354, __pyx_L1_error)
|
|
9947
9927
|
__Pyx_GOTREF(__pyx_t_4);
|
|
9948
9928
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
@@ -9975,7 +9955,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
9975
9955
|
|
|
9976
9956
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":355
|
|
9977
9957
|
* self._AbstractPrioritySemaphoreContextManager__waiters = deque()
|
|
9978
|
-
* fut =
|
|
9958
|
+
* fut = self._c_get_loop().create_future()
|
|
9979
9959
|
* self._AbstractPrioritySemaphoreContextManager__waiters.append(fut) # <<<<<<<<<<<<<<
|
|
9980
9960
|
* self._parent._potential_lost_waiters.append(fut)
|
|
9981
9961
|
* try:
|
|
@@ -9987,7 +9967,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
9987
9967
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
9988
9968
|
|
|
9989
9969
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":356
|
|
9990
|
-
* fut =
|
|
9970
|
+
* fut = self._c_get_loop().create_future()
|
|
9991
9971
|
* self._AbstractPrioritySemaphoreContextManager__waiters.append(fut)
|
|
9992
9972
|
* self._parent._potential_lost_waiters.append(fut) # <<<<<<<<<<<<<<
|
|
9993
9973
|
* try:
|
|
@@ -10022,7 +10002,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10022
10002
|
* except:
|
|
10023
10003
|
* # See the similar code in Queue.get.
|
|
10024
10004
|
*/
|
|
10025
|
-
__Pyx_TraceLine(358,0,__PYX_ERR(0, 358,
|
|
10005
|
+
__Pyx_TraceLine(358,0,__PYX_ERR(0, 358, __pyx_L7_error))
|
|
10026
10006
|
__pyx_r = __Pyx_Coroutine_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_fut);
|
|
10027
10007
|
__Pyx_XGOTREF(__pyx_r);
|
|
10028
10008
|
if (likely(__pyx_r)) {
|
|
@@ -10039,7 +10019,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10039
10019
|
/* return from generator, awaiting value */
|
|
10040
10020
|
__pyx_generator->resume_label = 1;
|
|
10041
10021
|
return __pyx_r;
|
|
10042
|
-
|
|
10022
|
+
__pyx_L15_resume_from_await:;
|
|
10043
10023
|
__pyx_t_7 = __pyx_cur_scope->__pyx_t_0;
|
|
10044
10024
|
__pyx_cur_scope->__pyx_t_0 = 0;
|
|
10045
10025
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
@@ -10049,12 +10029,12 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10049
10029
|
__pyx_t_9 = __pyx_cur_scope->__pyx_t_2;
|
|
10050
10030
|
__pyx_cur_scope->__pyx_t_2 = 0;
|
|
10051
10031
|
__Pyx_XGOTREF(__pyx_t_9);
|
|
10052
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 358,
|
|
10032
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 358, __pyx_L7_error)
|
|
10053
10033
|
} else {
|
|
10054
10034
|
PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType();
|
|
10055
10035
|
if (exc_type) {
|
|
10056
10036
|
if (likely(exc_type == PyExc_StopIteration || (exc_type != PyExc_GeneratorExit && __Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))) PyErr_Clear();
|
|
10057
|
-
else __PYX_ERR(0, 358,
|
|
10037
|
+
else __PYX_ERR(0, 358, __pyx_L7_error)
|
|
10058
10038
|
}
|
|
10059
10039
|
}
|
|
10060
10040
|
|
|
@@ -10069,8 +10049,8 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10069
10049
|
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
10070
10050
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
10071
10051
|
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
10072
|
-
goto
|
|
10073
|
-
|
|
10052
|
+
goto __pyx_L14_try_end;
|
|
10053
|
+
__pyx_L7_error:;
|
|
10074
10054
|
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
10075
10055
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
10076
10056
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
@@ -10082,10 +10062,10 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10082
10062
|
* # See the similar code in Queue.get.
|
|
10083
10063
|
* fut.cancel()
|
|
10084
10064
|
*/
|
|
10085
|
-
__Pyx_TraceLine(359,0,__PYX_ERR(0, 359,
|
|
10065
|
+
__Pyx_TraceLine(359,0,__PYX_ERR(0, 359, __pyx_L9_except_error))
|
|
10086
10066
|
/*except:*/ {
|
|
10087
10067
|
__Pyx_AddTraceback("a_sync.primitives.locks.prio_semaphore._AbstractPrioritySemaphoreContextManager._AbstractPrioritySemaphoreContextManager__acquire", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
10088
|
-
if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_3) < 0) __PYX_ERR(0, 359,
|
|
10068
|
+
if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_3) < 0) __PYX_ERR(0, 359, __pyx_L9_except_error)
|
|
10089
10069
|
__Pyx_XGOTREF(__pyx_t_2);
|
|
10090
10070
|
__Pyx_XGOTREF(__pyx_t_4);
|
|
10091
10071
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
@@ -10097,8 +10077,8 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10097
10077
|
* if self._parent._Semaphore__value > 0 and not fut.cancelled():
|
|
10098
10078
|
* self._parent._wake_up_next()
|
|
10099
10079
|
*/
|
|
10100
|
-
__Pyx_TraceLine(361,0,__PYX_ERR(0, 361,
|
|
10101
|
-
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_fut, __pyx_n_s_cancel); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 361,
|
|
10080
|
+
__Pyx_TraceLine(361,0,__PYX_ERR(0, 361, __pyx_L9_except_error))
|
|
10081
|
+
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_fut, __pyx_n_s_cancel); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 361, __pyx_L9_except_error)
|
|
10102
10082
|
__Pyx_GOTREF(__pyx_t_11);
|
|
10103
10083
|
__pyx_t_12 = NULL;
|
|
10104
10084
|
__pyx_t_5 = 0;
|
|
@@ -10118,7 +10098,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10118
10098
|
PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
|
|
10119
10099
|
__pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_11, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
10120
10100
|
__Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
10121
|
-
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 361,
|
|
10101
|
+
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 361, __pyx_L9_except_error)
|
|
10122
10102
|
__Pyx_GOTREF(__pyx_t_10);
|
|
10123
10103
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
10124
10104
|
}
|
|
@@ -10131,14 +10111,14 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10131
10111
|
* self._parent._wake_up_next()
|
|
10132
10112
|
* raise
|
|
10133
10113
|
*/
|
|
10134
|
-
__Pyx_TraceLine(362,0,__PYX_ERR(0, 362,
|
|
10114
|
+
__Pyx_TraceLine(362,0,__PYX_ERR(0, 362, __pyx_L9_except_error))
|
|
10135
10115
|
__pyx_t_13 = (__pyx_cur_scope->__pyx_v_self->_parent->__pyx_base._Semaphore__value > 0);
|
|
10136
10116
|
if (__pyx_t_13) {
|
|
10137
10117
|
} else {
|
|
10138
10118
|
__pyx_t_1 = __pyx_t_13;
|
|
10139
|
-
goto
|
|
10119
|
+
goto __pyx_L19_bool_binop_done;
|
|
10140
10120
|
}
|
|
10141
|
-
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_fut, __pyx_n_s_cancelled); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 362,
|
|
10121
|
+
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_fut, __pyx_n_s_cancelled); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 362, __pyx_L9_except_error)
|
|
10142
10122
|
__Pyx_GOTREF(__pyx_t_11);
|
|
10143
10123
|
__pyx_t_12 = NULL;
|
|
10144
10124
|
__pyx_t_5 = 0;
|
|
@@ -10158,15 +10138,15 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10158
10138
|
PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
|
|
10159
10139
|
__pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_11, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
10160
10140
|
__Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
10161
|
-
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 362,
|
|
10141
|
+
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 362, __pyx_L9_except_error)
|
|
10162
10142
|
__Pyx_GOTREF(__pyx_t_10);
|
|
10163
10143
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
10164
10144
|
}
|
|
10165
|
-
__pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 362,
|
|
10145
|
+
__pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 362, __pyx_L9_except_error)
|
|
10166
10146
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
10167
10147
|
__pyx_t_14 = (!__pyx_t_13);
|
|
10168
10148
|
__pyx_t_1 = __pyx_t_14;
|
|
10169
|
-
|
|
10149
|
+
__pyx_L19_bool_binop_done:;
|
|
10170
10150
|
if (__pyx_t_1) {
|
|
10171
10151
|
|
|
10172
10152
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":363
|
|
@@ -10176,8 +10156,8 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10176
10156
|
* raise
|
|
10177
10157
|
* self._parent._Semaphore__value -= 1
|
|
10178
10158
|
*/
|
|
10179
|
-
__Pyx_TraceLine(363,0,__PYX_ERR(0, 363,
|
|
10180
|
-
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->_parent), __pyx_n_s_wake_up_next); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 363,
|
|
10159
|
+
__Pyx_TraceLine(363,0,__PYX_ERR(0, 363, __pyx_L9_except_error))
|
|
10160
|
+
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->_parent), __pyx_n_s_wake_up_next); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 363, __pyx_L9_except_error)
|
|
10181
10161
|
__Pyx_GOTREF(__pyx_t_11);
|
|
10182
10162
|
__pyx_t_12 = NULL;
|
|
10183
10163
|
__pyx_t_5 = 0;
|
|
@@ -10197,7 +10177,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10197
10177
|
PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
|
|
10198
10178
|
__pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_11, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
10199
10179
|
__Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
10200
|
-
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 363,
|
|
10180
|
+
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 363, __pyx_L9_except_error)
|
|
10201
10181
|
__Pyx_GOTREF(__pyx_t_10);
|
|
10202
10182
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
10203
10183
|
}
|
|
@@ -10219,13 +10199,13 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10219
10199
|
* self._parent._Semaphore__value -= 1
|
|
10220
10200
|
* return True
|
|
10221
10201
|
*/
|
|
10222
|
-
__Pyx_TraceLine(364,0,__PYX_ERR(0, 364,
|
|
10202
|
+
__Pyx_TraceLine(364,0,__PYX_ERR(0, 364, __pyx_L9_except_error))
|
|
10223
10203
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
10224
10204
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
10225
10205
|
__Pyx_XGIVEREF(__pyx_t_3);
|
|
10226
10206
|
__Pyx_ErrRestoreWithState(__pyx_t_2, __pyx_t_4, __pyx_t_3);
|
|
10227
10207
|
__pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_t_3 = 0;
|
|
10228
|
-
__PYX_ERR(0, 364,
|
|
10208
|
+
__PYX_ERR(0, 364, __pyx_L9_except_error)
|
|
10229
10209
|
}
|
|
10230
10210
|
|
|
10231
10211
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":357
|
|
@@ -10235,13 +10215,13 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_14prio_semaphore_40_Abstra
|
|
|
10235
10215
|
* await fut
|
|
10236
10216
|
* except:
|
|
10237
10217
|
*/
|
|
10238
|
-
|
|
10218
|
+
__pyx_L9_except_error:;
|
|
10239
10219
|
__Pyx_XGIVEREF(__pyx_t_7);
|
|
10240
10220
|
__Pyx_XGIVEREF(__pyx_t_8);
|
|
10241
10221
|
__Pyx_XGIVEREF(__pyx_t_9);
|
|
10242
10222
|
__Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
|
|
10243
10223
|
goto __pyx_L1_error;
|
|
10244
|
-
|
|
10224
|
+
__pyx_L14_try_end:;
|
|
10245
10225
|
}
|
|
10246
10226
|
}
|
|
10247
10227
|
|
|
@@ -15017,16 +14997,15 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
15017
14997
|
{&__pyx_n_s_AbstractPrioritySemaphore, __pyx_k_AbstractPrioritySemaphore, sizeof(__pyx_k_AbstractPrioritySemaphore), 0, 0, 1, 1},
|
|
15018
14998
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex, __pyx_k_AbstractPrioritySemaphoreContex, sizeof(__pyx_k_AbstractPrioritySemaphoreContex), 0, 0, 1, 1},
|
|
15019
14999
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_10, __pyx_k_AbstractPrioritySemaphoreContex_10, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_10), 0, 0, 1, 1},
|
|
15020
|
-
{&
|
|
15000
|
+
{&__pyx_kp_u_AbstractPrioritySemaphoreContex_11, __pyx_k_AbstractPrioritySemaphoreContex_11, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_11), 0, 1, 0, 0},
|
|
15021
15001
|
{&__pyx_kp_u_AbstractPrioritySemaphoreContex_12, __pyx_k_AbstractPrioritySemaphoreContex_12, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_12), 0, 1, 0, 0},
|
|
15022
15002
|
{&__pyx_kp_u_AbstractPrioritySemaphoreContex_13, __pyx_k_AbstractPrioritySemaphoreContex_13, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_13), 0, 1, 0, 0},
|
|
15023
15003
|
{&__pyx_kp_u_AbstractPrioritySemaphoreContex_14, __pyx_k_AbstractPrioritySemaphoreContex_14, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_14), 0, 1, 0, 0},
|
|
15024
|
-
{&__pyx_kp_u_AbstractPrioritySemaphoreContex_15, __pyx_k_AbstractPrioritySemaphoreContex_15, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_15), 0, 1, 0, 0},
|
|
15025
15004
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_2, __pyx_k_AbstractPrioritySemaphoreContex_2, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_2), 0, 0, 1, 1},
|
|
15026
15005
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_3, __pyx_k_AbstractPrioritySemaphoreContex_3, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_3), 0, 0, 1, 1},
|
|
15027
15006
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_4, __pyx_k_AbstractPrioritySemaphoreContex_4, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_4), 0, 0, 1, 1},
|
|
15028
|
-
{&
|
|
15029
|
-
{&
|
|
15007
|
+
{&__pyx_kp_u_AbstractPrioritySemaphoreContex_5, __pyx_k_AbstractPrioritySemaphoreContex_5, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_5), 0, 1, 0, 0},
|
|
15008
|
+
{&__pyx_n_s_AbstractPrioritySemaphoreContex_6, __pyx_k_AbstractPrioritySemaphoreContex_6, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_6), 0, 0, 1, 1},
|
|
15030
15009
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_7, __pyx_k_AbstractPrioritySemaphoreContex_7, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_7), 0, 0, 1, 1},
|
|
15031
15010
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_8, __pyx_k_AbstractPrioritySemaphoreContex_8, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_8), 0, 0, 1, 1},
|
|
15032
15011
|
{&__pyx_n_s_AbstractPrioritySemaphoreContex_9, __pyx_k_AbstractPrioritySemaphoreContex_9, sizeof(__pyx_k_AbstractPrioritySemaphoreContex_9), 0, 0, 1, 1},
|
|
@@ -15670,7 +15649,7 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
15670
15649
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
15671
15650
|
if (__Pyx_MergeVtables(__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager) < 0) __PYX_ERR(0, 258, __pyx_L1_error)
|
|
15672
15651
|
#endif
|
|
15673
|
-
if (PyObject_SetAttr(__pyx_m,
|
|
15652
|
+
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AbstractPrioritySemaphoreContex_4, (PyObject *) __pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager) < 0) __PYX_ERR(0, 258, __pyx_L1_error)
|
|
15674
15653
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
15675
15654
|
if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager) < 0) __PYX_ERR(0, 258, __pyx_L1_error)
|
|
15676
15655
|
#endif
|
|
@@ -16424,7 +16403,7 @@ if (!__Pyx_RefNanny) {
|
|
|
16424
16403
|
__Pyx_GOTREF(__pyx_t_5);
|
|
16425
16404
|
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
16426
16405
|
__Pyx_GOTREF(__pyx_t_3);
|
|
16427
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_bound,
|
|
16406
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_bound, __pyx_kp_u_AbstractPrioritySemaphoreContex_5) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
16428
16407
|
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__32, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
16429
16408
|
__Pyx_GOTREF(__pyx_t_4);
|
|
16430
16409
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
@@ -16598,7 +16577,7 @@ if (!__Pyx_RefNanny) {
|
|
|
16598
16577
|
*/
|
|
16599
16578
|
__Pyx_TraceLine(296,0,__PYX_ERR(0, 296, __pyx_L1_error))
|
|
16600
16579
|
|
|
16601
|
-
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_5_repr_no_parent_, __Pyx_CYFUNCTION_CCLASS,
|
|
16580
|
+
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_5_repr_no_parent_, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractPrioritySemaphoreContex_6, NULL, __pyx_n_s_a_sync_primitives_locks_prio_sem, __pyx_d, ((PyObject *)__pyx_codeobj__15)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 296, __pyx_L1_error)
|
|
16602
16581
|
__Pyx_GOTREF(__pyx_t_4);
|
|
16603
16582
|
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager, __pyx_n_s_repr_no_parent, __pyx_t_4) < 0) __PYX_ERR(0, 296, __pyx_L1_error)
|
|
16604
16583
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
@@ -16623,7 +16602,7 @@ if (!__Pyx_RefNanny) {
|
|
|
16623
16602
|
*/
|
|
16624
16603
|
__Pyx_TraceLine(325,0,__PYX_ERR(0, 325, __pyx_L1_error))
|
|
16625
16604
|
|
|
16626
|
-
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_9acquire, __Pyx_CYFUNCTION_CCLASS,
|
|
16605
|
+
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_9acquire, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractPrioritySemaphoreContex_7, NULL, __pyx_n_s_a_sync_primitives_locks_prio_sem, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 325, __pyx_L1_error)
|
|
16627
16606
|
__Pyx_GOTREF(__pyx_t_4);
|
|
16628
16607
|
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager, __pyx_n_s_acquire, __pyx_t_4) < 0) __PYX_ERR(0, 325, __pyx_L1_error)
|
|
16629
16608
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
@@ -16667,7 +16646,7 @@ if (!__Pyx_RefNanny) {
|
|
|
16667
16646
|
*/
|
|
16668
16647
|
__Pyx_TraceLine(368,0,__PYX_ERR(0, 368, __pyx_L1_error))
|
|
16669
16648
|
|
|
16670
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_14release, __Pyx_CYFUNCTION_CCLASS,
|
|
16649
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_14release, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractPrioritySemaphoreContex_8, NULL, __pyx_n_s_a_sync_primitives_locks_prio_sem, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 368, __pyx_L1_error)
|
|
16671
16650
|
__Pyx_GOTREF(__pyx_t_3);
|
|
16672
16651
|
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager, __pyx_n_s_release, __pyx_t_3) < 0) __PYX_ERR(0, 368, __pyx_L1_error)
|
|
16673
16652
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
@@ -16689,7 +16668,7 @@ if (!__Pyx_RefNanny) {
|
|
|
16689
16668
|
* cdef object _dict
|
|
16690
16669
|
*/
|
|
16691
16670
|
__Pyx_TraceLine(1,0,__PYX_ERR(1, 1, __pyx_L1_error))
|
|
16692
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_16__reduce_cython__, __Pyx_CYFUNCTION_CCLASS,
|
|
16671
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_16__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractPrioritySemaphoreContex_9, NULL, __pyx_n_s_a_sync_primitives_locks_prio_sem, __pyx_d, ((PyObject *)__pyx_codeobj__19)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
16693
16672
|
__Pyx_GOTREF(__pyx_t_3);
|
|
16694
16673
|
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
16695
16674
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
@@ -16702,7 +16681,7 @@ if (!__Pyx_RefNanny) {
|
|
|
16702
16681
|
* __pyx_unpickle__AbstractPrioritySemaphoreContextManager__set_state(self, __pyx_state)
|
|
16703
16682
|
*/
|
|
16704
16683
|
__Pyx_TraceLine(16,0,__PYX_ERR(1, 16, __pyx_L1_error))
|
|
16705
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_18__setstate_cython__, __Pyx_CYFUNCTION_CCLASS,
|
|
16684
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_18__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractPrioritySemaphoreContex_10, NULL, __pyx_n_s_a_sync_primitives_locks_prio_sem, __pyx_d, ((PyObject *)__pyx_codeobj__20)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 16, __pyx_L1_error)
|
|
16706
16685
|
__Pyx_GOTREF(__pyx_t_3);
|
|
16707
16686
|
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(1, 16, __pyx_L1_error)
|
|
16708
16687
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
@@ -16813,10 +16792,10 @@ if (!__Pyx_RefNanny) {
|
|
|
16813
16792
|
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphore___get, __pyx_kp_u_Gets_the_context_manager_for_a_g) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16814
16793
|
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphore_locke_2, __pyx_kp_u_Checks_if_the_semaphore_is_locke) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16815
16794
|
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphore__wake_2, __pyx_kp_u_Wakes_up_the_next_waiter_in_line) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16816
|
-
if (PyDict_SetItem(__pyx_t_3,
|
|
16817
|
-
if (PyDict_SetItem(__pyx_t_3,
|
|
16818
|
-
if (PyDict_SetItem(__pyx_t_3,
|
|
16819
|
-
if (PyDict_SetItem(__pyx_t_3,
|
|
16795
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphoreContex_11, __pyx_kp_u_Initializes_the_context_manager) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16796
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphoreContex_12, __pyx_kp_u_Compares_this_context_manager_wi) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16797
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphoreContex_13, __pyx_kp_u_Acquires_the_semaphore_for_this) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16798
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_AbstractPrioritySemaphoreContex_14, __pyx_kp_u_Releases_the_semaphore_for_this) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16820
16799
|
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_PrioritySemaphoreContextManager_4, __pyx_kp_u_Compares_this_context_manager_wi) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16821
16800
|
if (PyDict_SetItem(__pyx_t_3, __pyx_kp_u_PrioritySemaphore___getitem___li, __pyx_kp_u_Gets_the_context_manager_for_a_g) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16822
16801
|
if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
@@ -351,7 +351,7 @@ cdef class _AbstractPrioritySemaphoreContextManager(Semaphore):
|
|
|
351
351
|
while self._parent._Semaphore__value <= 0:
|
|
352
352
|
if self._AbstractPrioritySemaphoreContextManager__waiters is None:
|
|
353
353
|
self._AbstractPrioritySemaphoreContextManager__waiters = deque()
|
|
354
|
-
fut =
|
|
354
|
+
fut = self._c_get_loop().create_future()
|
|
355
355
|
self._AbstractPrioritySemaphoreContextManager__waiters.append(fut)
|
|
356
356
|
self._parent._potential_lost_waiters.append(fut)
|
|
357
357
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|