ez-a-sync 0.32.26__cp310-cp310-macosx_11_0_arm64.whl → 0.32.27__cp310-cp310-macosx_11_0_arm64.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.

Files changed (66) hide show
  1. a_sync/_smart.c +44 -29
  2. a_sync/_smart.cpython-310-darwin.so +0 -0
  3. a_sync/a_sync/_descriptor.c +70 -55
  4. a_sync/a_sync/_descriptor.cpython-310-darwin.so +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cpython-310-darwin.so +0 -0
  7. a_sync/a_sync/_helpers.c +62 -47
  8. a_sync/a_sync/_helpers.cpython-310-darwin.so +0 -0
  9. a_sync/a_sync/_kwargs.c +33 -18
  10. a_sync/a_sync/_kwargs.cpython-310-darwin.so +0 -0
  11. a_sync/a_sync/abstract.c +18 -11
  12. a_sync/a_sync/abstract.cpython-310-darwin.so +0 -0
  13. a_sync/a_sync/base.c +168 -153
  14. a_sync/a_sync/base.cpython-310-darwin.so +0 -0
  15. a_sync/a_sync/flags.c +6 -3
  16. a_sync/a_sync/flags.cpython-310-darwin.so +0 -0
  17. a_sync/a_sync/function.c +80 -65
  18. a_sync/a_sync/function.cpython-310-darwin.so +0 -0
  19. a_sync/a_sync/method.c +120 -105
  20. a_sync/a_sync/method.cpython-310-darwin.so +0 -0
  21. a_sync/a_sync/modifiers/manager.c +46 -31
  22. a_sync/a_sync/modifiers/manager.cpython-310-darwin.so +0 -0
  23. a_sync/a_sync/property.c +82 -67
  24. a_sync/a_sync/property.cpython-310-darwin.so +0 -0
  25. a_sync/async_property/cached.c +52 -37
  26. a_sync/async_property/cached.cpython-310-darwin.so +0 -0
  27. a_sync/async_property/proxy.c +25 -10
  28. a_sync/async_property/proxy.cpython-310-darwin.so +0 -0
  29. a_sync/asyncio/as_completed.c +21 -6
  30. a_sync/asyncio/as_completed.cpython-310-darwin.so +0 -0
  31. a_sync/asyncio/create_task.c +23 -8
  32. a_sync/asyncio/create_task.cpython-310-darwin.so +0 -0
  33. a_sync/asyncio/gather.c +30 -15
  34. a_sync/asyncio/gather.cpython-310-darwin.so +0 -0
  35. a_sync/asyncio/igather.c +24 -9
  36. a_sync/asyncio/igather.cpython-310-darwin.so +0 -0
  37. a_sync/asyncio/sleep.c +19 -4
  38. a_sync/asyncio/sleep.cpython-310-darwin.so +0 -0
  39. a_sync/debugging.c +45 -30
  40. a_sync/debugging.cpython-310-darwin.so +0 -0
  41. a_sync/exceptions.c +18 -11
  42. a_sync/exceptions.cpython-310-darwin.so +0 -0
  43. a_sync/executor.py +44 -0
  44. a_sync/functools.c +24 -9
  45. a_sync/functools.cpython-310-darwin.so +0 -0
  46. a_sync/iter.c +83 -68
  47. a_sync/iter.cpython-310-darwin.so +0 -0
  48. a_sync/primitives/_debug.c +51 -36
  49. a_sync/primitives/_debug.cpython-310-darwin.so +0 -0
  50. a_sync/primitives/_loggable.c +26 -11
  51. a_sync/primitives/_loggable.cpython-310-darwin.so +0 -0
  52. a_sync/primitives/locks/counter.c +70 -55
  53. a_sync/primitives/locks/counter.cpython-310-darwin.so +0 -0
  54. a_sync/primitives/locks/event.c +56 -40
  55. a_sync/primitives/locks/event.cpython-310-darwin.so +0 -0
  56. a_sync/primitives/locks/prio_semaphore.c +79 -64
  57. a_sync/primitives/locks/prio_semaphore.cpython-310-darwin.so +0 -0
  58. a_sync/primitives/locks/semaphore.c +68 -53
  59. a_sync/primitives/locks/semaphore.cpython-310-darwin.so +0 -0
  60. a_sync/utils/repr.c +41 -26
  61. a_sync/utils/repr.cpython-310-darwin.so +0 -0
  62. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/METADATA +1 -1
  63. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/RECORD +66 -66
  64. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/WHEEL +0 -0
  65. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/licenses/LICENSE.txt +0 -0
  66. {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.2 */
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 "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
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 __PYX_HAVE_RT_ImportType_proto_3_1_2
2877
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
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 __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
2885
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
2883
2886
  #else
2884
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
2887
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
2885
2888
  #endif
2886
- enum __Pyx_ImportType_CheckSize_3_1_2 {
2887
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
2888
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
2889
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
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 *__Pyx_ImportType_3_1_2(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size);
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 __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
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 = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(0, 1, __pyx_L1_error)
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 = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(2, 1, __pyx_L1_error)
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 = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(3, 3, __pyx_L1_error)
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 = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives.locks.event", "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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(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
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) __PYX_ERR(4, 5, __pyx_L1_error)
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 (__Pyx_ImportFunction_3_1_2(__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)
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 (__Pyx_ImportFunction_3_1_2(__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)
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 (__Pyx_ImportFunction_3_1_2(__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)
8230
- if (__Pyx_ImportFunction_3_1_2(__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)
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 (__Pyx_ImportFunction_3_1_2(__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)
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, 0, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
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,1,0,__PYX_ERR(1, 1, __pyx_L1_error))
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,0,0,__PYX_ERR(0, 1, __pyx_L1_error))
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, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
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(0, 0);
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);
@@ -11057,6 +11060,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11057
11060
  changed = 1;
11058
11061
  }
11059
11062
  #endif // CYTHON_METH_FASTCALL
11063
+ #if !CYTHON_COMPILING_IN_PYPY
11060
11064
  else if (strcmp(memb->name, "__module__") == 0) {
11061
11065
  PyObject *descr;
11062
11066
  assert(memb->type == T_OBJECT);
@@ -11071,11 +11075,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11071
11075
  }
11072
11076
  changed = 1;
11073
11077
  }
11078
+ #endif // !CYTHON_COMPILING_IN_PYPY
11074
11079
  }
11075
11080
  memb++;
11076
11081
  }
11077
11082
  }
11078
11083
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
11084
+ #if !CYTHON_COMPILING_IN_PYPY
11079
11085
  slot = spec->slots;
11080
11086
  while (slot && slot->slot && slot->slot != Py_tp_getset)
11081
11087
  slot++;
@@ -11107,6 +11113,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11107
11113
  ++getset;
11108
11114
  }
11109
11115
  }
11116
+ #endif // !CYTHON_COMPILING_IN_PYPY
11110
11117
  if (changed)
11111
11118
  PyType_Modified(type);
11112
11119
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -11239,7 +11246,7 @@ bad:
11239
11246
  }
11240
11247
 
11241
11248
  /* CommonTypesMetaclass */
11242
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11249
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11243
11250
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11244
11251
  }
11245
11252
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -11549,7 +11556,7 @@ try_unpack:
11549
11556
  }
11550
11557
 
11551
11558
  /* PyObjectCallMethod1 */
11552
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
11559
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
11553
11560
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11554
11561
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
11555
11562
  Py_DECREF(method);
@@ -11557,7 +11564,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11557
11564
  }
11558
11565
  #endif
11559
11566
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
11560
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
11567
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
11561
11568
  PyObject *args[2] = {obj, arg};
11562
11569
  (void) __Pyx_PyObject_GetMethod;
11563
11570
  (void) __Pyx_PyObject_CallOneArg;
@@ -13188,10 +13195,10 @@ static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr
13188
13195
  }
13189
13196
 
13190
13197
  /* TypeImport */
13191
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
13192
- #define __PYX_HAVE_RT_ImportType_3_1_2
13193
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
13194
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
13198
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_3
13199
+ #define __PYX_HAVE_RT_ImportType_3_1_3
13200
+ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
13201
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
13195
13202
  {
13196
13203
  PyObject *result = 0;
13197
13204
  Py_ssize_t basicsize;
@@ -13247,7 +13254,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13247
13254
  module_name, class_name, size, basicsize+itemsize);
13248
13255
  goto bad;
13249
13256
  }
13250
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
13257
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
13251
13258
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
13252
13259
  PyErr_Format(PyExc_ValueError,
13253
13260
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -13255,7 +13262,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13255
13262
  module_name, class_name, size, basicsize, basicsize+itemsize);
13256
13263
  goto bad;
13257
13264
  }
13258
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
13265
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
13259
13266
  if (PyErr_WarnFormat(NULL, 0,
13260
13267
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
13261
13268
  "Expected %zd from C header, got %zd from PyObject",
@@ -13292,6 +13299,13 @@ bad:
13292
13299
 
13293
13300
  /* PyObjectCallMethod0 */
13294
13301
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
13302
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
13303
+ PyObject *args[1] = {obj};
13304
+ (void) __Pyx_PyObject_GetMethod;
13305
+ (void) __Pyx_PyObject_CallOneArg;
13306
+ (void) __Pyx_PyObject_CallNoArg;
13307
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
13308
+ #else
13295
13309
  PyObject *method = NULL, *result = NULL;
13296
13310
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
13297
13311
  if (likely(is_method)) {
@@ -13304,6 +13318,7 @@ bad:
13304
13318
  Py_DECREF(method);
13305
13319
  bad:
13306
13320
  return result;
13321
+ #endif
13307
13322
  }
13308
13323
 
13309
13324
  /* ValidateBasesTuple */
@@ -16585,9 +16600,9 @@ static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
16585
16600
  }
16586
16601
 
16587
16602
  /* FunctionImport */
16588
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
16589
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
16590
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
16603
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
16604
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
16605
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
16591
16606
  PyObject *d = 0;
16592
16607
  PyObject *cobj = 0;
16593
16608
  union {
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.2 */
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 "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
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
@@ -2848,22 +2851,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
2848
2851
  static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
2849
2852
 
2850
2853
  /* TypeImport.proto */
2851
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_2
2852
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
2854
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
2855
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_3
2853
2856
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2854
2857
  #include <stdalign.h>
2855
2858
  #endif
2856
2859
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2857
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
2860
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
2858
2861
  #else
2859
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
2862
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
2860
2863
  #endif
2861
- enum __Pyx_ImportType_CheckSize_3_1_2 {
2862
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
2863
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
2864
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
2864
+ enum __Pyx_ImportType_CheckSize_3_1_3 {
2865
+ __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
2866
+ __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
2867
+ __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
2865
2868
  };
2866
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size);
2869
+ 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);
2867
2870
  #endif
2868
2871
 
2869
2872
  /* GetVTable.proto */
@@ -4566,9 +4569,10 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
4566
4569
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4567
4570
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error)
4568
4571
  __Pyx_GOTREF(__pyx_t_1);
4572
+ __Pyx_INCREF(__pyx_t_1);
4569
4573
  __pyx_v_len_waiters = __pyx_t_1;
4570
- __pyx_t_1 = 0;
4571
- __pyx_t_2 = (__pyx_t_6 != 0);
4574
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 93, __pyx_L1_error)
4575
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4572
4576
  if (__pyx_t_2) {
4573
4577
 
4574
4578
  /* "a_sync/primitives/locks/event.pyx":94
@@ -6539,11 +6543,11 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
6539
6543
  __Pyx_GOTREF(__pyx_t_1);
6540
6544
  }
6541
6545
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent))))) __PYX_ERR(0, 173, __pyx_L1_error)
6546
+ __Pyx_INCREF(__pyx_t_1);
6542
6547
  __Pyx_XGOTREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
6543
6548
  __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_self, ((struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_t_1));
6544
6549
  __Pyx_GIVEREF(__pyx_t_1);
6545
- __Pyx_INCREF(__pyx_t_1);
6546
- __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 173, __pyx_L1_error)
6550
+ __pyx_t_7 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_t_1)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 173, __pyx_L1_error)
6547
6551
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6548
6552
  if (__pyx_t_7) {
6549
6553
  } else {
@@ -7889,15 +7893,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
7889
7893
  /*--- Type init code ---*/
7890
7894
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
7891
7895
  __Pyx_GOTREF(__pyx_t_1);
7892
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
7896
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
7893
7897
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
7894
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
7898
+ 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),
7895
7899
  #elif CYTHON_COMPILING_IN_LIMITED_API
7896
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
7900
+ 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),
7897
7901
  #else
7898
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
7902
+ 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),
7899
7903
  #endif
7900
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(0, 1, __pyx_L1_error)
7904
+ __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)
7901
7905
  __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)
7902
7906
  __pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent = &__pyx_vtable_6a_sync_10primitives_5locks_5event_CythonEvent;
7903
7907
  __pyx_vtable_6a_sync_10primitives_5locks_5event_CythonEvent.__pyx_base = *__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin;
@@ -8010,28 +8014,28 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
8010
8014
  /*--- Type import code ---*/
8011
8015
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._loggable"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
8012
8016
  __Pyx_GOTREF(__pyx_t_1);
8013
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
8017
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
8014
8018
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
8015
- sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
8019
+ 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),
8016
8020
  #elif CYTHON_COMPILING_IN_LIMITED_API
8017
- sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
8021
+ 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),
8018
8022
  #else
8019
- sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
8023
+ 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),
8020
8024
  #endif
8021
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(2, 1, __pyx_L1_error)
8025
+ __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)
8022
8026
  __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)
8023
8027
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8024
8028
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
8025
8029
  __Pyx_GOTREF(__pyx_t_1);
8026
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
8030
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
8027
8031
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
8028
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
8032
+ 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),
8029
8033
  #elif CYTHON_COMPILING_IN_LIMITED_API
8030
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
8034
+ 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),
8031
8035
  #else
8032
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
8036
+ 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),
8033
8037
  #endif
8034
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(3, 3, __pyx_L1_error)
8038
+ __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)
8035
8039
  __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)
8036
8040
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8037
8041
  __Pyx_RefNannyFinishContext();
@@ -11020,6 +11024,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11020
11024
  changed = 1;
11021
11025
  }
11022
11026
  #endif // CYTHON_METH_FASTCALL
11027
+ #if !CYTHON_COMPILING_IN_PYPY
11023
11028
  else if (strcmp(memb->name, "__module__") == 0) {
11024
11029
  PyObject *descr;
11025
11030
  assert(memb->type == T_OBJECT);
@@ -11034,11 +11039,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11034
11039
  }
11035
11040
  changed = 1;
11036
11041
  }
11042
+ #endif // !CYTHON_COMPILING_IN_PYPY
11037
11043
  }
11038
11044
  memb++;
11039
11045
  }
11040
11046
  }
11041
11047
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
11048
+ #if !CYTHON_COMPILING_IN_PYPY
11042
11049
  slot = spec->slots;
11043
11050
  while (slot && slot->slot && slot->slot != Py_tp_getset)
11044
11051
  slot++;
@@ -11070,6 +11077,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11070
11077
  ++getset;
11071
11078
  }
11072
11079
  }
11080
+ #endif // !CYTHON_COMPILING_IN_PYPY
11073
11081
  if (changed)
11074
11082
  PyType_Modified(type);
11075
11083
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -11202,7 +11210,7 @@ bad:
11202
11210
  }
11203
11211
 
11204
11212
  /* CommonTypesMetaclass */
11205
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11213
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11206
11214
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11207
11215
  }
11208
11216
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -11518,7 +11526,7 @@ try_unpack:
11518
11526
  }
11519
11527
 
11520
11528
  /* PyObjectCallMethod1 */
11521
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
11529
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
11522
11530
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11523
11531
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
11524
11532
  Py_DECREF(method);
@@ -11526,7 +11534,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11526
11534
  }
11527
11535
  #endif
11528
11536
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
11529
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
11537
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
11530
11538
  PyObject *args[2] = {obj, arg};
11531
11539
  (void) __Pyx_PyObject_GetMethod;
11532
11540
  (void) __Pyx_PyObject_CallOneArg;
@@ -13000,10 +13008,10 @@ static CYTHON_INLINE __Pyx_PySendResult __Pyx_Coroutine_Yield_From(__pyx_Corouti
13000
13008
  }
13001
13009
 
13002
13010
  /* TypeImport */
13003
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
13004
- #define __PYX_HAVE_RT_ImportType_3_1_2
13005
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
13006
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
13011
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_3
13012
+ #define __PYX_HAVE_RT_ImportType_3_1_3
13013
+ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
13014
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
13007
13015
  {
13008
13016
  PyObject *result = 0;
13009
13017
  Py_ssize_t basicsize;
@@ -13059,7 +13067,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13059
13067
  module_name, class_name, size, basicsize+itemsize);
13060
13068
  goto bad;
13061
13069
  }
13062
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
13070
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
13063
13071
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
13064
13072
  PyErr_Format(PyExc_ValueError,
13065
13073
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -13067,7 +13075,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13067
13075
  module_name, class_name, size, basicsize, basicsize+itemsize);
13068
13076
  goto bad;
13069
13077
  }
13070
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
13078
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
13071
13079
  if (PyErr_WarnFormat(NULL, 0,
13072
13080
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
13073
13081
  "Expected %zd from C header, got %zd from PyObject",
@@ -13104,6 +13112,13 @@ bad:
13104
13112
 
13105
13113
  /* PyObjectCallMethod0 */
13106
13114
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
13115
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
13116
+ PyObject *args[1] = {obj};
13117
+ (void) __Pyx_PyObject_GetMethod;
13118
+ (void) __Pyx_PyObject_CallOneArg;
13119
+ (void) __Pyx_PyObject_CallNoArg;
13120
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
13121
+ #else
13107
13122
  PyObject *method = NULL, *result = NULL;
13108
13123
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
13109
13124
  if (likely(is_method)) {
@@ -13116,6 +13131,7 @@ bad:
13116
13131
  Py_DECREF(method);
13117
13132
  bad:
13118
13133
  return result;
13134
+ #endif
13119
13135
  }
13120
13136
 
13121
13137
  /* ValidateBasesTuple */