ez-a-sync 0.32.26__cp39-cp39-win_amd64.whl → 0.32.27__cp39-cp39-win_amd64.whl
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.
- a_sync/_smart.c +53 -39
- a_sync/_smart.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/_descriptor.c +64 -49
- a_sync/a_sync/_descriptor.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/_flags.c +13 -10
- a_sync/a_sync/_flags.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/_helpers.c +62 -47
- a_sync/a_sync/_helpers.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/_kwargs.c +33 -18
- a_sync/a_sync/_kwargs.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/abstract.c +18 -11
- a_sync/a_sync/abstract.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/base.c +177 -163
- a_sync/a_sync/base.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/flags.c +6 -3
- a_sync/a_sync/flags.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/function.c +89 -75
- a_sync/a_sync/function.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/method.c +135 -121
- a_sync/a_sync/method.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/modifiers/manager.c +55 -41
- a_sync/a_sync/modifiers/manager.cp39-win_amd64.pyd +0 -0
- a_sync/a_sync/property.c +82 -67
- a_sync/a_sync/property.cp39-win_amd64.pyd +0 -0
- a_sync/async_property/cached.c +57 -42
- a_sync/async_property/cached.cp39-win_amd64.pyd +0 -0
- a_sync/async_property/proxy.c +24 -9
- a_sync/async_property/proxy.cp39-win_amd64.pyd +0 -0
- a_sync/asyncio/as_completed.c +21 -6
- a_sync/asyncio/as_completed.cp39-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.c +32 -18
- a_sync/asyncio/create_task.cp39-win_amd64.pyd +0 -0
- a_sync/asyncio/gather.c +30 -15
- a_sync/asyncio/gather.cp39-win_amd64.pyd +0 -0
- a_sync/asyncio/igather.c +33 -19
- a_sync/asyncio/igather.cp39-win_amd64.pyd +0 -0
- a_sync/asyncio/sleep.c +19 -4
- a_sync/asyncio/sleep.cp39-win_amd64.pyd +0 -0
- a_sync/debugging.c +54 -40
- a_sync/debugging.cp39-win_amd64.pyd +0 -0
- a_sync/exceptions.c +18 -11
- a_sync/exceptions.cp39-win_amd64.pyd +0 -0
- a_sync/executor.py +44 -0
- a_sync/functools.c +24 -9
- a_sync/functools.cp39-win_amd64.pyd +0 -0
- a_sync/iter.c +95 -81
- a_sync/iter.cp39-win_amd64.pyd +0 -0
- a_sync/primitives/_debug.c +55 -40
- a_sync/primitives/_debug.cp39-win_amd64.pyd +0 -0
- a_sync/primitives/_loggable.c +25 -10
- a_sync/primitives/_loggable.cp39-win_amd64.pyd +0 -0
- a_sync/primitives/locks/counter.c +79 -65
- a_sync/primitives/locks/counter.cp39-win_amd64.pyd +0 -0
- a_sync/primitives/locks/event.c +70 -55
- a_sync/primitives/locks/event.cp39-win_amd64.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.c +91 -77
- a_sync/primitives/locks/prio_semaphore.cp39-win_amd64.pyd +0 -0
- a_sync/primitives/locks/semaphore.c +77 -63
- a_sync/primitives/locks/semaphore.cp39-win_amd64.pyd +0 -0
- a_sync/utils/repr.c +50 -36
- a_sync/utils/repr.cp39-win_amd64.pyd +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/RECORD +66 -66
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.3 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
@@ -30,8 +30,8 @@ END: Cython Metadata */
|
|
|
30
30
|
#elif PY_VERSION_HEX < 0x03080000
|
|
31
31
|
#error Cython requires Python 3.8+.
|
|
32
32
|
#else
|
|
33
|
-
#define __PYX_ABI_VERSION "
|
|
34
|
-
#define CYTHON_HEX_VERSION
|
|
33
|
+
#define __PYX_ABI_VERSION "3_1_3"
|
|
34
|
+
#define CYTHON_HEX_VERSION 0x030103F0
|
|
35
35
|
#define CYTHON_FUTURE_DIVISION 1
|
|
36
36
|
/* CModulePreamble */
|
|
37
37
|
#include <stddef.h>
|
|
@@ -394,6 +394,9 @@ END: Cython Metadata */
|
|
|
394
394
|
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
|
|
395
395
|
#endif
|
|
396
396
|
#endif
|
|
397
|
+
#ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
|
|
398
|
+
#define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
|
|
399
|
+
#endif
|
|
397
400
|
#ifndef __has_attribute
|
|
398
401
|
#define __has_attribute(x) 0
|
|
399
402
|
#endif
|
|
@@ -2873,22 +2876,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
|
|
|
2873
2876
|
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
|
|
2874
2877
|
|
|
2875
2878
|
/* TypeImport.proto */
|
|
2876
|
-
#ifndef
|
|
2877
|
-
#define
|
|
2879
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
|
|
2880
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_3
|
|
2878
2881
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2879
2882
|
#include <stdalign.h>
|
|
2880
2883
|
#endif
|
|
2881
2884
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2882
|
-
#define
|
|
2885
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
|
|
2883
2886
|
#else
|
|
2884
|
-
#define
|
|
2887
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
|
|
2885
2888
|
#endif
|
|
2886
|
-
enum
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2889
|
+
enum __Pyx_ImportType_CheckSize_3_1_3 {
|
|
2890
|
+
__Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
|
|
2891
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
|
|
2892
|
+
__Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
|
|
2890
2893
|
};
|
|
2891
|
-
static PyTypeObject *
|
|
2894
|
+
static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size);
|
|
2892
2895
|
#endif
|
|
2893
2896
|
|
|
2894
2897
|
/* GetVTable.proto */
|
|
@@ -3189,7 +3192,7 @@ static unsigned long __Pyx_get_runtime_version(void);
|
|
|
3189
3192
|
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
|
|
3190
3193
|
|
|
3191
3194
|
/* FunctionImport.proto */
|
|
3192
|
-
static int
|
|
3195
|
+
static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
|
|
3193
3196
|
|
|
3194
3197
|
/* MultiPhaseInitModuleState.proto */
|
|
3195
3198
|
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
|
|
@@ -8008,15 +8011,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
8008
8011
|
/*--- Type init code ---*/
|
|
8009
8012
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8010
8013
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8011
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin =
|
|
8014
|
+
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
|
|
8012
8015
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
8013
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
|
|
8016
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
|
|
8014
8017
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
8015
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
|
|
8018
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
|
|
8016
8019
|
#else
|
|
8017
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
|
|
8020
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
|
|
8018
8021
|
#endif
|
|
8019
|
-
|
|
8022
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8020
8023
|
__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin = (struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__DebugDaemonMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8021
8024
|
__pyx_vtabptr_6a_sync_10primitives_5locks_7counter_CounterLock = &__pyx_vtable_6a_sync_10primitives_5locks_7counter_CounterLock;
|
|
8022
8025
|
__pyx_vtable_6a_sync_10primitives_5locks_7counter_CounterLock.__pyx_base = *__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin;
|
|
@@ -8153,41 +8156,41 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
8153
8156
|
/*--- Type import code ---*/
|
|
8154
8157
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives._loggable"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
8155
8158
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8156
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin =
|
|
8159
|
+
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
|
|
8157
8160
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
8158
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
|
|
8161
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
|
|
8159
8162
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
8160
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
|
|
8163
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
|
|
8161
8164
|
#else
|
|
8162
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
|
|
8165
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
|
|
8163
8166
|
#endif
|
|
8164
|
-
|
|
8167
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
8165
8168
|
__pyx_vtabptr_6a_sync_10primitives_9_loggable__LoggerMixin = (struct __pyx_vtabstruct_6a_sync_10primitives_9_loggable__LoggerMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_9_loggable__LoggerMixin)) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
8166
8169
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8167
8170
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
|
|
8168
8171
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8169
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin =
|
|
8172
|
+
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
|
|
8170
8173
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
8171
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
|
|
8174
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
|
|
8172
8175
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
8173
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
|
|
8176
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
|
|
8174
8177
|
#else
|
|
8175
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
|
|
8178
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
|
|
8176
8179
|
#endif
|
|
8177
|
-
|
|
8180
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(3, 3, __pyx_L1_error)
|
|
8178
8181
|
__pyx_vtabptr_6a_sync_10primitives_6_debug__LoopBoundMixin = (struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__LoopBoundMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_6_debug__LoopBoundMixin)) __PYX_ERR(3, 3, __pyx_L1_error)
|
|
8179
8182
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8180
8183
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives.locks.event"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 5, __pyx_L1_error)
|
|
8181
8184
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8182
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent =
|
|
8185
|
+
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives.locks.event", "CythonEvent",
|
|
8183
8186
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
8184
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
|
|
8187
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
|
|
8185
8188
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
8186
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
|
|
8189
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
|
|
8187
8190
|
#else
|
|
8188
|
-
sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
|
|
8191
|
+
sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
|
|
8189
8192
|
#endif
|
|
8190
|
-
|
|
8193
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) __PYX_ERR(4, 5, __pyx_L1_error)
|
|
8191
8194
|
__pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent = (struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent)) __PYX_ERR(4, 5, __pyx_L1_error)
|
|
8192
8195
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8193
8196
|
__Pyx_RefNannyFinishContext();
|
|
@@ -8218,20 +8221,20 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
8218
8221
|
/*--- Function import code ---*/
|
|
8219
8222
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._helpers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8220
8223
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8221
|
-
if (
|
|
8224
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "get_event_loop", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8_helpers_get_event_loop, "PyObject *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8222
8225
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8223
8226
|
__pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.as_completed"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8224
8227
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8225
|
-
if (
|
|
8228
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "as_completed_mapping", (void (**)(void))&__pyx_f_6a_sync_7asyncio_12as_completed_as_completed_mapping, "PyObject *(PyObject *, unsigned int, int, int, int, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8226
8229
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8227
8230
|
__pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.create_task"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8228
8231
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8229
|
-
if (
|
|
8230
|
-
if (
|
|
8232
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "ccreate_task_simple", (void (**)(void))&__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8233
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "ccreate_task", (void (**)(void))&__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task, "PyObject *(PyObject *, PyObject *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8231
8234
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8232
8235
|
__pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.igather"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8233
8236
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8234
|
-
if (
|
|
8237
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "cigather", (void (**)(void))&__pyx_f_6a_sync_7asyncio_7igather_cigather, "PyObject *(PyObject *, struct __pyx_opt_args_6a_sync_7asyncio_7igather_cigather *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8235
8238
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8236
8239
|
__Pyx_RefNannyFinishContext();
|
|
8237
8240
|
return 0;
|
|
@@ -8525,7 +8528,7 @@ __Pyx_RefNannySetupContext("PyInit_counter", 0);
|
|
|
8525
8528
|
(void)__Pyx_modinit_variable_import_code(__pyx_mstate);
|
|
8526
8529
|
if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8527
8530
|
/*--- Execution code ---*/
|
|
8528
|
-
__Pyx_TraceStartFunc("PyInit_counter", __pyx_f[0], 1,
|
|
8531
|
+
__Pyx_TraceStartFunc("PyInit_counter", __pyx_f[0], 1, 1, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
|
|
8529
8532
|
|
|
8530
8533
|
/* "a_sync/primitives/locks/counter.pyx":7
|
|
8531
8534
|
* """
|
|
@@ -8667,7 +8670,7 @@ __Pyx_RefNannySetupContext("PyInit_counter", 0);
|
|
|
8667
8670
|
* raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
|
|
8668
8671
|
* def __setstate_cython__(self, __pyx_state):
|
|
8669
8672
|
*/
|
|
8670
|
-
__Pyx_TraceLine(1,
|
|
8673
|
+
__Pyx_TraceLine(1,0,0,__PYX_ERR(1, 1, __pyx_L1_error))
|
|
8671
8674
|
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_7counter_11CounterLock_19__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CounterLock___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_counter, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
8672
8675
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8673
8676
|
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
@@ -8763,7 +8766,7 @@ __Pyx_RefNannySetupContext("PyInit_counter", 0);
|
|
|
8763
8766
|
* This module provides two specialized async flow management classes, :class:`CounterLock` and :class:`CounterLockCluster`.
|
|
8764
8767
|
*
|
|
8765
8768
|
*/
|
|
8766
|
-
__Pyx_TraceLine(1,
|
|
8769
|
+
__Pyx_TraceLine(1,1,0,__PYX_ERR(0, 1, __pyx_L1_error))
|
|
8767
8770
|
__pyx_t_3 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8768
8771
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8769
8772
|
if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_CounterLock___init___line_41, __pyx_mstate_global->__pyx_kp_u_Initializes_the_class_CounterLo) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
@@ -8776,7 +8779,7 @@ __Pyx_RefNannySetupContext("PyInit_counter", 0);
|
|
|
8776
8779
|
if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_CounterLockCluster_wait_for_line, __pyx_mstate_global->__pyx_kp_u_Waits_until_the_value_of_all_cl) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8777
8780
|
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8778
8781
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8779
|
-
__Pyx_TraceReturnValue(Py_None,
|
|
8782
|
+
__Pyx_TraceReturnValue(Py_None, 1, 0, __PYX_ERR(0, 1, __pyx_L1_error));
|
|
8780
8783
|
__Pyx_PyMonitoring_ExitScope(0);
|
|
8781
8784
|
|
|
8782
8785
|
/*--- Wrapped vars code ---*/
|
|
@@ -8787,7 +8790,7 @@ __Pyx_RefNannySetupContext("PyInit_counter", 0);
|
|
|
8787
8790
|
__Pyx_XDECREF(__pyx_t_3);
|
|
8788
8791
|
__Pyx_XDECREF(__pyx_t_4);
|
|
8789
8792
|
__Pyx_TraceException(__pyx_lineno, 0, 0);
|
|
8790
|
-
__Pyx_TraceExceptionUnwind(
|
|
8793
|
+
__Pyx_TraceExceptionUnwind(1, 0);
|
|
8791
8794
|
if (__pyx_m) {
|
|
8792
8795
|
if (__pyx_mstate->__pyx_d && stringtab_initialized) {
|
|
8793
8796
|
__Pyx_AddTraceback("init a_sync.primitives.locks.counter", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
@@ -9019,16 +9022,15 @@ static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
|
|
|
9019
9022
|
return -1;
|
|
9020
9023
|
}
|
|
9021
9024
|
/* #### Code section: init_codeobjects ### */
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
} __Pyx_PyCode_New_function_description;
|
|
9025
|
+
typedef struct {
|
|
9026
|
+
unsigned int argcount : 2;
|
|
9027
|
+
unsigned int num_posonly_args : 1;
|
|
9028
|
+
unsigned int num_kwonly_args : 1;
|
|
9029
|
+
unsigned int nlocals : 3;
|
|
9030
|
+
unsigned int flags : 10;
|
|
9031
|
+
unsigned int first_line : 9;
|
|
9032
|
+
unsigned int line_table_length : 12;
|
|
9033
|
+
} __Pyx_PyCode_New_function_description;
|
|
9032
9034
|
/* NewCodeObj.proto */
|
|
9033
9035
|
static PyObject* __Pyx_PyCode_New(
|
|
9034
9036
|
const __Pyx_PyCode_New_function_description descr,
|
|
@@ -11057,6 +11059,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
11057
11059
|
changed = 1;
|
|
11058
11060
|
}
|
|
11059
11061
|
#endif // CYTHON_METH_FASTCALL
|
|
11062
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
11060
11063
|
else if (strcmp(memb->name, "__module__") == 0) {
|
|
11061
11064
|
PyObject *descr;
|
|
11062
11065
|
assert(memb->type == T_OBJECT);
|
|
@@ -11071,11 +11074,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
11071
11074
|
}
|
|
11072
11075
|
changed = 1;
|
|
11073
11076
|
}
|
|
11077
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
11074
11078
|
}
|
|
11075
11079
|
memb++;
|
|
11076
11080
|
}
|
|
11077
11081
|
}
|
|
11078
11082
|
#endif // !CYTHON_COMPILING_IN_LIMITED_API
|
|
11083
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
11079
11084
|
slot = spec->slots;
|
|
11080
11085
|
while (slot && slot->slot && slot->slot != Py_tp_getset)
|
|
11081
11086
|
slot++;
|
|
@@ -11107,6 +11112,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
11107
11112
|
++getset;
|
|
11108
11113
|
}
|
|
11109
11114
|
}
|
|
11115
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
11110
11116
|
if (changed)
|
|
11111
11117
|
PyType_Modified(type);
|
|
11112
11118
|
#endif // PY_VERSION_HEX > 0x030900B1
|
|
@@ -11239,7 +11245,7 @@ bad:
|
|
|
11239
11245
|
}
|
|
11240
11246
|
|
|
11241
11247
|
/* CommonTypesMetaclass */
|
|
11242
|
-
PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
11248
|
+
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
11243
11249
|
return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
|
|
11244
11250
|
}
|
|
11245
11251
|
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
|
|
@@ -11549,7 +11555,7 @@ try_unpack:
|
|
|
11549
11555
|
}
|
|
11550
11556
|
|
|
11551
11557
|
/* PyObjectCallMethod1 */
|
|
11552
|
-
#if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
|
|
11558
|
+
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
|
|
11553
11559
|
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
11554
11560
|
PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
|
|
11555
11561
|
Py_DECREF(method);
|
|
@@ -11557,7 +11563,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
|
11557
11563
|
}
|
|
11558
11564
|
#endif
|
|
11559
11565
|
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
|
|
11560
|
-
#if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
|
|
11566
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
11561
11567
|
PyObject *args[2] = {obj, arg};
|
|
11562
11568
|
(void) __Pyx_PyObject_GetMethod;
|
|
11563
11569
|
(void) __Pyx_PyObject_CallOneArg;
|
|
@@ -13188,10 +13194,10 @@ static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr
|
|
|
13188
13194
|
}
|
|
13189
13195
|
|
|
13190
13196
|
/* TypeImport */
|
|
13191
|
-
#ifndef
|
|
13192
|
-
#define
|
|
13193
|
-
static PyTypeObject *
|
|
13194
|
-
size_t size, size_t alignment, enum
|
|
13197
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_1_3
|
|
13198
|
+
#define __PYX_HAVE_RT_ImportType_3_1_3
|
|
13199
|
+
static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
|
|
13200
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
|
|
13195
13201
|
{
|
|
13196
13202
|
PyObject *result = 0;
|
|
13197
13203
|
Py_ssize_t basicsize;
|
|
@@ -13247,7 +13253,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
13247
13253
|
module_name, class_name, size, basicsize+itemsize);
|
|
13248
13254
|
goto bad;
|
|
13249
13255
|
}
|
|
13250
|
-
if (check_size ==
|
|
13256
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
|
|
13251
13257
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
13252
13258
|
PyErr_Format(PyExc_ValueError,
|
|
13253
13259
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -13255,7 +13261,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
13255
13261
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
13256
13262
|
goto bad;
|
|
13257
13263
|
}
|
|
13258
|
-
else if (check_size ==
|
|
13264
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
|
|
13259
13265
|
if (PyErr_WarnFormat(NULL, 0,
|
|
13260
13266
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
13261
13267
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -13292,6 +13298,13 @@ bad:
|
|
|
13292
13298
|
|
|
13293
13299
|
/* PyObjectCallMethod0 */
|
|
13294
13300
|
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
|
|
13301
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
13302
|
+
PyObject *args[1] = {obj};
|
|
13303
|
+
(void) __Pyx_PyObject_GetMethod;
|
|
13304
|
+
(void) __Pyx_PyObject_CallOneArg;
|
|
13305
|
+
(void) __Pyx_PyObject_CallNoArg;
|
|
13306
|
+
return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
|
|
13307
|
+
#else
|
|
13295
13308
|
PyObject *method = NULL, *result = NULL;
|
|
13296
13309
|
int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
|
|
13297
13310
|
if (likely(is_method)) {
|
|
@@ -13304,6 +13317,7 @@ bad:
|
|
|
13304
13317
|
Py_DECREF(method);
|
|
13305
13318
|
bad:
|
|
13306
13319
|
return result;
|
|
13320
|
+
#endif
|
|
13307
13321
|
}
|
|
13308
13322
|
|
|
13309
13323
|
/* ValidateBasesTuple */
|
|
@@ -16585,9 +16599,9 @@ static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
|
|
|
16585
16599
|
}
|
|
16586
16600
|
|
|
16587
16601
|
/* FunctionImport */
|
|
16588
|
-
#ifndef
|
|
16589
|
-
#define
|
|
16590
|
-
static int
|
|
16602
|
+
#ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
|
|
16603
|
+
#define __PYX_HAVE_RT_ImportFunction_3_1_3
|
|
16604
|
+
static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
|
|
16591
16605
|
PyObject *d = 0;
|
|
16592
16606
|
PyObject *cobj = 0;
|
|
16593
16607
|
union {
|
|
Binary file
|