ez-a-sync 0.32.27__cp38-cp38-win_amd64.whl → 0.32.28__cp38-cp38-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.

Files changed (70) hide show
  1. a_sync/_smart.c +41 -36
  2. a_sync/_smart.cp38-win_amd64.pyd +0 -0
  3. a_sync/a_sync/_descriptor.c +63 -58
  4. a_sync/a_sync/_descriptor.cp38-win_amd64.pyd +0 -0
  5. a_sync/a_sync/_flags.c +10 -10
  6. a_sync/a_sync/_flags.cp38-win_amd64.pyd +0 -0
  7. a_sync/a_sync/_helpers.c +57 -52
  8. a_sync/a_sync/_helpers.cp38-win_amd64.pyd +0 -0
  9. a_sync/a_sync/_kwargs.c +27 -22
  10. a_sync/a_sync/_kwargs.cp38-win_amd64.pyd +0 -0
  11. a_sync/a_sync/abstract.c +46 -23
  12. a_sync/a_sync/abstract.cp38-win_amd64.pyd +0 -0
  13. a_sync/a_sync/abstract.pyi +2 -2
  14. a_sync/a_sync/base.c +60 -51
  15. a_sync/a_sync/base.cp38-win_amd64.pyd +0 -0
  16. a_sync/a_sync/flags.c +10 -10
  17. a_sync/a_sync/flags.cp38-win_amd64.pyd +0 -0
  18. a_sync/a_sync/function.c +87 -73
  19. a_sync/a_sync/function.cp38-win_amd64.pyd +0 -0
  20. a_sync/a_sync/method.c +86 -69
  21. a_sync/a_sync/method.cp38-win_amd64.pyd +0 -0
  22. a_sync/a_sync/method.pyi +2 -1
  23. a_sync/a_sync/modifiers/manager.c +42 -37
  24. a_sync/a_sync/modifiers/manager.cp38-win_amd64.pyd +0 -0
  25. a_sync/a_sync/property.c +86 -75
  26. a_sync/a_sync/property.cp38-win_amd64.pyd +0 -0
  27. a_sync/async_property/cached.c +48 -43
  28. a_sync/async_property/cached.cp38-win_amd64.pyd +0 -0
  29. a_sync/async_property/proxy.c +16 -11
  30. a_sync/async_property/proxy.cp38-win_amd64.pyd +0 -0
  31. a_sync/asyncio/as_completed.c +15 -10
  32. a_sync/asyncio/as_completed.cp38-win_amd64.pyd +0 -0
  33. a_sync/asyncio/create_task.c +39 -16
  34. a_sync/asyncio/create_task.cp38-win_amd64.pyd +0 -0
  35. a_sync/asyncio/gather.c +24 -19
  36. a_sync/asyncio/gather.cp38-win_amd64.pyd +0 -0
  37. a_sync/asyncio/igather.c +26 -17
  38. a_sync/asyncio/igather.cp38-win_amd64.pyd +0 -0
  39. a_sync/asyncio/sleep.c +8 -3
  40. a_sync/asyncio/sleep.cp38-win_amd64.pyd +0 -0
  41. a_sync/debugging.c +34 -29
  42. a_sync/debugging.cp38-win_amd64.pyd +0 -0
  43. a_sync/exceptions.c +28 -19
  44. a_sync/exceptions.cp38-win_amd64.pyd +0 -0
  45. a_sync/functools.c +20 -15
  46. a_sync/functools.cp38-win_amd64.pyd +0 -0
  47. a_sync/iter.c +144 -89
  48. a_sync/iter.cp38-win_amd64.pyd +0 -0
  49. a_sync/primitives/_debug.c +51 -46
  50. a_sync/primitives/_debug.cp38-win_amd64.pyd +0 -0
  51. a_sync/primitives/_loggable.c +30 -19
  52. a_sync/primitives/_loggable.cp38-win_amd64.pyd +0 -0
  53. a_sync/primitives/locks/counter.c +80 -65
  54. a_sync/primitives/locks/counter.cp38-win_amd64.pyd +0 -0
  55. a_sync/primitives/locks/event.c +52 -47
  56. a_sync/primitives/locks/event.cp38-win_amd64.pyd +0 -0
  57. a_sync/primitives/locks/prio_semaphore.c +100 -75
  58. a_sync/primitives/locks/prio_semaphore.cp38-win_amd64.pyd +0 -0
  59. a_sync/primitives/locks/prio_semaphore.pyi +2 -2
  60. a_sync/primitives/locks/semaphore.c +75 -63
  61. a_sync/primitives/locks/semaphore.cp38-win_amd64.pyd +0 -0
  62. a_sync/primitives/locks/semaphore.pyi +10 -9
  63. a_sync/primitives/queue.py +5 -1
  64. a_sync/utils/repr.c +36 -31
  65. a_sync/utils/repr.cp38-win_amd64.pyd +0 -0
  66. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
  67. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +70 -70
  68. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/LICENSE.txt +0 -0
  69. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
  70. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.3 */
1
+ /* Generated by Cython 3.1.4 */
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_3"
34
- #define CYTHON_HEX_VERSION 0x030103F0
33
+ #define __PYX_ABI_VERSION "3_1_4"
34
+ #define CYTHON_HEX_VERSION 0x030104F0
35
35
  #define CYTHON_FUTURE_DIVISION 1
36
36
  /* CModulePreamble */
37
37
  #include <stddef.h>
@@ -2294,18 +2294,18 @@ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
2294
2294
  if (!__Pyx_PyThreadState_Current->tracing) {\
2295
2295
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2296
2296
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2297
- if (unlikely(!__pyx_frame_code)) goto_error;\
2298
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2299
- }\
2297
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2298
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2299
+ } else __pyx_frame_code = NULL;\
2300
2300
  PyGILState_Release(state);\
2301
- }\
2301
+ } else __pyx_frame_code = NULL;\
2302
2302
  } else {\
2303
2303
  if (!__Pyx_PyThreadState_Current->tracing) {\
2304
2304
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2305
2305
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2306
- if (unlikely(!__pyx_frame_code)) goto_error;\
2307
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2308
- }\
2306
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2307
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2308
+ } else __pyx_frame_code = NULL;\
2309
2309
  }\
2310
2310
  if (unlikely(ret == -1)) goto_error;\
2311
2311
  }
@@ -3123,22 +3123,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
3123
3123
  static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
3124
3124
 
3125
3125
  /* TypeImport.proto */
3126
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
3127
- #define __PYX_HAVE_RT_ImportType_proto_3_1_3
3126
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
3127
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_4
3128
3128
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
3129
3129
  #include <stdalign.h>
3130
3130
  #endif
3131
3131
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
3132
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
3132
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
3133
3133
  #else
3134
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
3134
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
3135
3135
  #endif
3136
- enum __Pyx_ImportType_CheckSize_3_1_3 {
3137
- __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
3138
- __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
3139
- __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
3136
+ enum __Pyx_ImportType_CheckSize_3_1_4 {
3137
+ __Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
3138
+ __Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
3139
+ __Pyx_ImportType_CheckSize_Ignore_3_1_4 = 2
3140
3140
  };
3141
- 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);
3141
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size);
3142
3142
  #endif
3143
3143
 
3144
3144
  /* GetVTable.proto */
@@ -6854,8 +6854,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrio
6854
6854
  */
6855
6855
  __Pyx_TraceLine(250,70,0,__PYX_ERR(0, 250, __pyx_L1_error))
6856
6856
  while (1) {
6857
- __pyx_t_6 = (__pyx_v_self_waiters != Py_None)&&(__Pyx_PyList_GET_SIZE(__pyx_v_self_waiters) != 0);
6858
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_6 < 0))) __PYX_ERR(0, 250, __pyx_L1_error)
6857
+ if (__pyx_v_self_waiters == Py_None) __pyx_t_6 = 0;
6858
+ else
6859
+ {
6860
+ Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_self_waiters);
6861
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 250, __pyx_L1_error)
6862
+ __pyx_t_6 = (__pyx_temp != 0);
6863
+ }
6864
+
6859
6865
  if (!__pyx_t_6) break;
6860
6866
 
6861
6867
  /* "a_sync/primitives/locks/prio_semaphore.pyx":251
@@ -7641,8 +7647,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrio
7641
7647
  */
7642
7648
  __Pyx_TraceLine(311,218,0,__PYX_ERR(0, 311, __pyx_L1_error))
7643
7649
  while (1) {
7644
- __pyx_t_9 = (__pyx_v_potential_lost_waiters != Py_None)&&(__Pyx_PySet_GET_SIZE(__pyx_v_potential_lost_waiters) != 0);
7645
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_9 < 0))) __PYX_ERR(0, 311, __pyx_L1_error)
7650
+ if (__pyx_v_potential_lost_waiters == Py_None) __pyx_t_9 = 0;
7651
+ else
7652
+ {
7653
+ Py_ssize_t __pyx_temp = __Pyx_PySet_GET_SIZE(__pyx_v_potential_lost_waiters);
7654
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 311, __pyx_L1_error)
7655
+ __pyx_t_9 = (__pyx_temp != 0);
7656
+ }
7657
+
7646
7658
  if (!__pyx_t_9) break;
7647
7659
 
7648
7660
  /* "a_sync/primitives/locks/prio_semaphore.pyx":312
@@ -7741,8 +7753,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrio
7741
7753
  */
7742
7754
  __Pyx_TraceLine(318,234,0,__PYX_ERR(0, 318, __pyx_L1_error))
7743
7755
  while (1) {
7744
- __pyx_t_9 = (__pyx_v_potential_lost_waiters != Py_None)&&(__Pyx_PySet_GET_SIZE(__pyx_v_potential_lost_waiters) != 0);
7745
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_9 < 0))) __PYX_ERR(0, 318, __pyx_L1_error)
7756
+ if (__pyx_v_potential_lost_waiters == Py_None) __pyx_t_9 = 0;
7757
+ else
7758
+ {
7759
+ Py_ssize_t __pyx_temp = __Pyx_PySet_GET_SIZE(__pyx_v_potential_lost_waiters);
7760
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 318, __pyx_L1_error)
7761
+ __pyx_t_9 = (__pyx_temp != 0);
7762
+ }
7763
+
7746
7764
  if (!__pyx_t_9) break;
7747
7765
 
7748
7766
  /* "a_sync/primitives/locks/prio_semaphore.pyx":319
@@ -13629,6 +13647,7 @@ static struct PyMemberDef __pyx_tp_members_PrioritySemaphore[] = {
13629
13647
  {NULL, 0, 0, 0, NULL}
13630
13648
  };
13631
13649
  static PyType_Slot __pyx_type_6a_sync_10primitives_5locks_14prio_semaphore_PrioritySemaphore_slots[] = {
13650
+ {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore},
13632
13651
  {Py_sq_item, (void *)__pyx_sq_item_6a_sync_10primitives_5locks_14prio_semaphore_PrioritySemaphore},
13633
13652
  {Py_mp_subscript, (void *)__pyx_pw_6a_sync_10primitives_5locks_14prio_semaphore_17PrioritySemaphore_5__getitem__},
13634
13653
  {Py_tp_doc, (void *)PyDoc_STR("PrioritySemaphore(int value: int = 1, str name: Optional[str] = None, *) -> None\n\nSemaphore that uses numeric priorities for waiters.\n\nThis class extends :class:`_AbstractPrioritySemaphore` and provides a concrete implementation\nusing numeric priorities. The `_context_manager_class` is set to :class:`_PrioritySemaphoreContextManager`,\nand the `_top_priority` is set to -1, which is the highest priority.\n\nExamples:\n The primary way to use this semaphore is by specifying a priority.\n\n >>> priority_semaphore = PrioritySemaphore(10)\n >>> async with priority_semaphore[priority]:\n ... await do_stuff()\n\n You can also enter and exit this semaphore without specifying a priority, and it will use the top priority by default:\n\n >>> priority_semaphore = PrioritySemaphore(10)\n >>> async with priority_semaphore:\n ... await do_stuff()\n\nSee Also:\n :class:`_AbstractPrioritySemaphore` for the base class implementation.")},
@@ -14022,6 +14041,7 @@ static struct PyMemberDef __pyx_tp_members__PrioritySemaphoreContextManager[] =
14022
14041
  {NULL, 0, 0, 0, NULL}
14023
14042
  };
14024
14043
  static PyType_Slot __pyx_type_6a_sync_10primitives_5locks_14prio_semaphore__PrioritySemaphoreContextManager_slots[] = {
14044
+ {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager},
14025
14045
  {Py_tp_doc, (void *)PyDoc_STR("Context manager for numeric priority semaphores.")},
14026
14046
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager},
14027
14047
  {Py_tp_clear, (void *)__pyx_tp_clear_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager},
@@ -14687,15 +14707,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
14687
14707
  /*--- Type init code ---*/
14688
14708
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives.locks.semaphore"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
14689
14709
  __Pyx_GOTREF(__pyx_t_1);
14690
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_Semaphore = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives.locks.semaphore", "Semaphore",
14710
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_Semaphore = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives.locks.semaphore", "Semaphore",
14691
14711
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
14692
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore),
14712
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore),
14693
14713
  #elif CYTHON_COMPILING_IN_LIMITED_API
14694
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore),
14714
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore),
14695
14715
  #else
14696
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore),
14716
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_Semaphore),
14697
14717
  #endif
14698
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_Semaphore) __PYX_ERR(0, 1, __pyx_L1_error)
14718
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_Semaphore) __PYX_ERR(0, 1, __pyx_L1_error)
14699
14719
  __pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_Semaphore = (struct __pyx_vtabstruct_6a_sync_10primitives_5locks_9semaphore_Semaphore*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_Semaphore); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_Semaphore)) __PYX_ERR(0, 1, __pyx_L1_error)
14700
14720
  __pyx_vtabptr_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore = &__pyx_vtable_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore;
14701
14721
  __pyx_vtable_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore.__pyx_base = *__pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_Semaphore;
@@ -14924,61 +14944,61 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
14924
14944
  /*--- Type import code ---*/
14925
14945
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._loggable"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
14926
14946
  __Pyx_GOTREF(__pyx_t_1);
14927
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
14947
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
14928
14948
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
14929
- 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),
14949
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
14930
14950
  #elif CYTHON_COMPILING_IN_LIMITED_API
14931
- 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),
14951
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
14932
14952
  #else
14933
- 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),
14953
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
14934
14954
  #endif
14935
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(3, 1, __pyx_L1_error)
14955
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(3, 1, __pyx_L1_error)
14936
14956
  __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(3, 1, __pyx_L1_error)
14937
14957
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14938
14958
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3, __pyx_L1_error)
14939
14959
  __Pyx_GOTREF(__pyx_t_1);
14940
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
14960
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
14941
14961
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
14942
- 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),
14962
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
14943
14963
  #elif CYTHON_COMPILING_IN_LIMITED_API
14944
- 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),
14964
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
14945
14965
  #else
14946
- 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),
14966
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
14947
14967
  #endif
14948
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(4, 3, __pyx_L1_error)
14968
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(4, 3, __pyx_L1_error)
14949
14969
  __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(4, 3, __pyx_L1_error)
14950
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
14970
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
14951
14971
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
14952
- 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),
14972
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
14953
14973
  #elif CYTHON_COMPILING_IN_LIMITED_API
14954
- 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),
14974
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
14955
14975
  #else
14956
- 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),
14976
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
14957
14977
  #endif
14958
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(4, 8, __pyx_L1_error)
14978
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(4, 8, __pyx_L1_error)
14959
14979
  __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(4, 8, __pyx_L1_error)
14960
14980
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14961
14981
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives.locks.semaphore"); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 15, __pyx_L1_error)
14962
14982
  __Pyx_GOTREF(__pyx_t_1);
14963
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_DummySemaphore = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives.locks.semaphore", "DummySemaphore",
14983
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_DummySemaphore = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives.locks.semaphore", "DummySemaphore",
14964
14984
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
14965
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore),
14985
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore),
14966
14986
  #elif CYTHON_COMPILING_IN_LIMITED_API
14967
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore),
14987
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore),
14968
14988
  #else
14969
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore),
14989
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_DummySemaphore),
14970
14990
  #endif
14971
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_DummySemaphore) __PYX_ERR(5, 15, __pyx_L1_error)
14991
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_DummySemaphore) __PYX_ERR(5, 15, __pyx_L1_error)
14972
14992
  __pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_DummySemaphore = (struct __pyx_vtabstruct_6a_sync_10primitives_5locks_9semaphore_DummySemaphore*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_DummySemaphore); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_DummySemaphore)) __PYX_ERR(5, 15, __pyx_L1_error)
14973
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives.locks.semaphore", "ThreadsafeSemaphore",
14993
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives.locks.semaphore", "ThreadsafeSemaphore",
14974
14994
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
14975
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore),
14995
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore),
14976
14996
  #elif CYTHON_COMPILING_IN_LIMITED_API
14977
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore),
14997
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore),
14978
14998
  #else
14979
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore),
14999
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore),
14980
15000
  #endif
14981
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore) __PYX_ERR(5, 18, __pyx_L1_error)
15001
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore) __PYX_ERR(5, 18, __pyx_L1_error)
14982
15002
  __pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore = (struct __pyx_vtabstruct_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_ThreadsafeSemaphore)) __PYX_ERR(5, 18, __pyx_L1_error)
14983
15003
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14984
15004
  __Pyx_RefNannyFinishContext();
@@ -15294,7 +15314,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15294
15314
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
15295
15315
  (void)__Pyx_modinit_function_import_code(__pyx_mstate);
15296
15316
  /*--- Execution code ---*/
15297
- __Pyx_TraceStartFunc("PyInit_prio_semaphore", __pyx_f[0], 1, 3, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
15317
+ __Pyx_TraceStartFunc("PyInit_prio_semaphore", __pyx_f[0], 1, 0, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
15298
15318
 
15299
15319
  /* "a_sync/primitives/locks/prio_semaphore.pyx":8
15300
15320
  * """
@@ -15783,7 +15803,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15783
15803
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
15784
15804
  * def __setstate_cython__(self, __pyx_state):
15785
15805
  */
15786
- __Pyx_TraceLine(1,4,0,__PYX_ERR(1, 1, __pyx_L1_error))
15806
+ __Pyx_TraceLine(1,2,0,__PYX_ERR(1, 1, __pyx_L1_error))
15787
15807
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrioritySemaphore_21__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbstractPrioritySemaphore___red, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1, __pyx_L1_error)
15788
15808
  __Pyx_GOTREF(__pyx_t_3);
15789
15809
  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)
@@ -15795,7 +15815,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15795
15815
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
15796
15816
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
15797
15817
  */
15798
- __Pyx_TraceLine(3,8,0,__PYX_ERR(1, 3, __pyx_L1_error))
15818
+ __Pyx_TraceLine(3,7,0,__PYX_ERR(1, 3, __pyx_L1_error))
15799
15819
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrioritySemaphore_23__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbstractPrioritySemaphore___set, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 3, __pyx_L1_error)
15800
15820
  __Pyx_GOTREF(__pyx_t_3);
15801
15821
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
@@ -15866,7 +15886,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15866
15886
  * cdef tuple state
15867
15887
  * cdef object _dict
15868
15888
  */
15869
- __Pyx_TraceLine(1,1,0,__PYX_ERR(1, 1, __pyx_L1_error))
15889
+ __Pyx_TraceLine(1,4,0,__PYX_ERR(1, 1, __pyx_L1_error))
15870
15890
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_40_AbstractPrioritySemaphoreContextManager_16__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbstractPrioritySemaphoreContex_8, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1, __pyx_L1_error)
15871
15891
  __Pyx_GOTREF(__pyx_t_4);
15872
15892
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -15919,7 +15939,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15919
15939
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
15920
15940
  * def __setstate_cython__(self, __pyx_state):
15921
15941
  */
15922
- __Pyx_TraceLine(1,5,0,__PYX_ERR(1, 1, __pyx_L1_error))
15942
+ __Pyx_TraceLine(1,1,0,__PYX_ERR(1, 1, __pyx_L1_error))
15923
15943
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_32_PrioritySemaphoreContextManager_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PrioritySemaphoreContextManager_2, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1, __pyx_L1_error)
15924
15944
  __Pyx_GOTREF(__pyx_t_4);
15925
15945
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -15931,7 +15951,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15931
15951
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
15932
15952
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
15933
15953
  */
15934
- __Pyx_TraceLine(3,7,0,__PYX_ERR(1, 3, __pyx_L1_error))
15954
+ __Pyx_TraceLine(3,6,0,__PYX_ERR(1, 3, __pyx_L1_error))
15935
15955
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_32_PrioritySemaphoreContextManager_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PrioritySemaphoreContextManager_3, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 3, __pyx_L1_error)
15936
15956
  __Pyx_GOTREF(__pyx_t_4);
15937
15957
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
@@ -15952,7 +15972,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15952
15972
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
15953
15973
  * def __setstate_cython__(self, __pyx_state):
15954
15974
  */
15955
- __Pyx_TraceLine(1,2,0,__PYX_ERR(1, 1, __pyx_L1_error))
15975
+ __Pyx_TraceLine(1,5,0,__PYX_ERR(1, 1, __pyx_L1_error))
15956
15976
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_17PrioritySemaphore_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PrioritySemaphore___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1, __pyx_L1_error)
15957
15977
  __Pyx_GOTREF(__pyx_t_4);
15958
15978
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -15964,7 +15984,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15964
15984
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
15965
15985
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
15966
15986
  */
15967
- __Pyx_TraceLine(3,6,0,__PYX_ERR(1, 3, __pyx_L1_error))
15987
+ __Pyx_TraceLine(3,8,0,__PYX_ERR(1, 3, __pyx_L1_error))
15968
15988
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_17PrioritySemaphore_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PrioritySemaphore___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 3, __pyx_L1_error)
15969
15989
  __Pyx_GOTREF(__pyx_t_4);
15970
15990
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
@@ -15984,7 +16004,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
15984
16004
  * cdef object __pyx_PickleError
15985
16005
  * cdef object __pyx_result
15986
16006
  */
15987
- __Pyx_TraceLine(1,0,0,__PYX_ERR(1, 1, __pyx_L1_error))
16007
+ __Pyx_TraceLine(1,3,0,__PYX_ERR(1, 1, __pyx_L1_error))
15988
16008
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_14prio_semaphore_1__pyx_unpickle__AbstractPrioritySemaphoreContextManager, 0, __pyx_mstate_global->__pyx_n_u_pyx_unpickle__AbstractPriority, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_prio_sem, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1, __pyx_L1_error)
15989
16009
  __Pyx_GOTREF(__pyx_t_4);
15990
16010
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_unpickle__AbstractPriority, __pyx_t_4) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -16005,7 +16025,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
16005
16025
  * """
16006
16026
  * This module provides priority-based semaphore implementations. These semaphores allow
16007
16027
  */
16008
- __Pyx_TraceLine(1,3,0,__PYX_ERR(0, 1, __pyx_L1_error))
16028
+ __Pyx_TraceLine(1,0,0,__PYX_ERR(0, 1, __pyx_L1_error))
16009
16029
  __pyx_t_4 = __Pyx_PyDict_NewPresized(11); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error)
16010
16030
  __Pyx_GOTREF(__pyx_t_4);
16011
16031
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_AbstractPrioritySemaphore___ini, __pyx_mstate_global->__pyx_kp_u_Initializes_the_priority_semapho) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
@@ -16021,7 +16041,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
16021
16041
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_PrioritySemaphore___getitem___li, __pyx_mstate_global->__pyx_kp_u_Gets_the_context_manager_for_a_g) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16022
16042
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_4) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16023
16043
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
16024
- __Pyx_TraceReturnValue(Py_None, 3, 0, __PYX_ERR(0, 1, __pyx_L1_error));
16044
+ __Pyx_TraceReturnValue(Py_None, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
16025
16045
  __Pyx_PyMonitoring_ExitScope(0);
16026
16046
 
16027
16047
  /*--- Wrapped vars code ---*/
@@ -16034,7 +16054,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
16034
16054
  __Pyx_XDECREF(__pyx_t_5);
16035
16055
  __Pyx_XDECREF(__pyx_t_7);
16036
16056
  __Pyx_TraceException(__pyx_lineno, 0, 0);
16037
- __Pyx_TraceExceptionUnwind(3, 0);
16057
+ __Pyx_TraceExceptionUnwind(0, 0);
16038
16058
  if (__pyx_m) {
16039
16059
  if (__pyx_mstate->__pyx_d && stringtab_initialized) {
16040
16060
  __Pyx_AddTraceback("init a_sync.primitives.locks.prio_semaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
@@ -18844,6 +18864,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
18844
18864
  return -1;
18845
18865
  }
18846
18866
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
18867
+ Py_DECREF(bases);
18847
18868
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
18848
18869
  return -1;
18849
18870
  }
@@ -21560,15 +21581,15 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
21560
21581
  }
21561
21582
 
21562
21583
  /* TypeImport */
21563
- #ifndef __PYX_HAVE_RT_ImportType_3_1_3
21564
- #define __PYX_HAVE_RT_ImportType_3_1_3
21565
- static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
21566
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
21584
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_4
21585
+ #define __PYX_HAVE_RT_ImportType_3_1_4
21586
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
21587
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
21567
21588
  {
21568
21589
  PyObject *result = 0;
21569
21590
  Py_ssize_t basicsize;
21570
21591
  Py_ssize_t itemsize;
21571
- #if CYTHON_COMPILING_IN_LIMITED_API
21592
+ #ifdef Py_LIMITED_API
21572
21593
  PyObject *py_basicsize;
21573
21594
  PyObject *py_itemsize;
21574
21595
  #endif
@@ -21581,7 +21602,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
21581
21602
  module_name, class_name);
21582
21603
  goto bad;
21583
21604
  }
21584
- #if !CYTHON_COMPILING_IN_LIMITED_API
21605
+ #ifndef Py_LIMITED_API
21585
21606
  basicsize = ((PyTypeObject *)result)->tp_basicsize;
21586
21607
  itemsize = ((PyTypeObject *)result)->tp_itemsize;
21587
21608
  #else
@@ -21619,7 +21640,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
21619
21640
  module_name, class_name, size, basicsize+itemsize);
21620
21641
  goto bad;
21621
21642
  }
21622
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
21643
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
21623
21644
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
21624
21645
  PyErr_Format(PyExc_ValueError,
21625
21646
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -21627,7 +21648,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
21627
21648
  module_name, class_name, size, basicsize, basicsize+itemsize);
21628
21649
  goto bad;
21629
21650
  }
21630
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
21651
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
21631
21652
  if (PyErr_WarnFormat(NULL, 0,
21632
21653
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
21633
21654
  "Expected %zd from C header, got %zd from PyObject",
@@ -25110,6 +25131,10 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
25110
25131
  PyCode_NewWithPosOnlyArgs
25111
25132
  #endif
25112
25133
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
25134
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
25135
+ if (likely(result))
25136
+ result->_co_firsttraceable = 0;
25137
+ #endif
25113
25138
  return result;
25114
25139
  }
25115
25140
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
@@ -1,11 +1,11 @@
1
1
  from a_sync._typing import *
2
2
  import asyncio
3
- from _typeshed import Incomplete
3
+ import logging
4
4
  from a_sync.primitives.locks.semaphore import Semaphore as Semaphore
5
5
  from functools import cached_property as cached_property
6
6
  from typing import Protocol, TypeVar
7
7
 
8
- logger: Incomplete
8
+ logger: logging.Logger
9
9
 
10
10
  class Priority(Protocol):
11
11
  def __lt__(self, other) -> bool: ...