ez-a-sync 0.32.26__cp310-cp310-win32.whl → 0.32.28__cp310-cp310-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- a_sync/_smart.c +63 -43
- a_sync/_smart.cp310-win32.pyd +0 -0
- a_sync/a_sync/_descriptor.c +78 -58
- a_sync/a_sync/_descriptor.cp310-win32.pyd +0 -0
- a_sync/a_sync/_flags.c +13 -10
- a_sync/a_sync/_flags.cp310-win32.pyd +0 -0
- a_sync/a_sync/_helpers.c +76 -56
- a_sync/a_sync/_helpers.cp310-win32.pyd +0 -0
- a_sync/a_sync/_kwargs.c +45 -25
- a_sync/a_sync/_kwargs.cp310-win32.pyd +0 -0
- a_sync/a_sync/abstract.c +54 -24
- a_sync/a_sync/abstract.cp310-win32.pyd +0 -0
- a_sync/a_sync/abstract.pyi +2 -2
- a_sync/a_sync/base.c +186 -162
- a_sync/a_sync/base.cp310-win32.pyd +0 -0
- a_sync/a_sync/flags.c +13 -10
- a_sync/a_sync/flags.cp310-win32.pyd +0 -0
- a_sync/a_sync/function.c +106 -77
- a_sync/a_sync/function.cp310-win32.pyd +0 -0
- a_sync/a_sync/method.c +151 -119
- a_sync/a_sync/method.cp310-win32.pyd +0 -0
- a_sync/a_sync/method.pyi +2 -1
- a_sync/a_sync/modifiers/manager.c +60 -40
- a_sync/a_sync/modifiers/manager.cp310-win32.pyd +0 -0
- a_sync/a_sync/property.c +104 -78
- a_sync/a_sync/property.cp310-win32.pyd +0 -0
- a_sync/async_property/cached.c +71 -51
- a_sync/async_property/cached.cp310-win32.pyd +0 -0
- a_sync/async_property/proxy.c +37 -17
- a_sync/async_property/proxy.cp310-win32.pyd +0 -0
- a_sync/asyncio/as_completed.c +33 -13
- a_sync/asyncio/as_completed.cp310-win32.pyd +0 -0
- a_sync/asyncio/create_task.c +59 -21
- a_sync/asyncio/create_task.cp310-win32.pyd +0 -0
- a_sync/asyncio/gather.c +42 -22
- a_sync/asyncio/gather.cp310-win32.pyd +0 -0
- a_sync/asyncio/igather.c +42 -18
- a_sync/asyncio/igather.cp310-win32.pyd +0 -0
- a_sync/asyncio/sleep.c +24 -4
- a_sync/asyncio/sleep.cp310-win32.pyd +0 -0
- a_sync/debugging.c +52 -32
- a_sync/debugging.cp310-win32.pyd +0 -0
- a_sync/exceptions.c +36 -20
- a_sync/exceptions.cp310-win32.pyd +0 -0
- a_sync/executor.py +44 -0
- a_sync/functools.c +36 -16
- a_sync/functools.cp310-win32.pyd +0 -0
- a_sync/iter.c +167 -97
- a_sync/iter.cp310-win32.pyd +0 -0
- a_sync/primitives/_debug.c +69 -49
- a_sync/primitives/_debug.cp310-win32.pyd +0 -0
- a_sync/primitives/_loggable.c +48 -22
- a_sync/primitives/_loggable.cp310-win32.pyd +0 -0
- a_sync/primitives/locks/counter.c +93 -63
- a_sync/primitives/locks/counter.cp310-win32.pyd +0 -0
- a_sync/primitives/locks/event.c +70 -49
- a_sync/primitives/locks/event.cp310-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.c +120 -80
- a_sync/primitives/locks/prio_semaphore.cp310-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.pyi +2 -2
- a_sync/primitives/locks/semaphore.c +96 -69
- a_sync/primitives/locks/semaphore.cp310-win32.pyd +0 -0
- a_sync/primitives/locks/semaphore.pyi +10 -9
- a_sync/primitives/queue.py +5 -1
- a_sync/utils/repr.c +55 -35
- a_sync/utils/repr.cp310-win32.pyd +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +71 -71
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.26.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.
|
|
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 "
|
|
34
|
-
#define CYTHON_HEX_VERSION
|
|
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>
|
|
@@ -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
|
|
@@ -2291,18 +2294,18 @@ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
|
|
|
2291
2294
|
if (!__Pyx_PyThreadState_Current->tracing) {\
|
|
2292
2295
|
if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
|
|
2293
2296
|
else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
|
|
2294
|
-
if (unlikely(!__pyx_frame_code))
|
|
2295
|
-
ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2296
|
-
}
|
|
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;\
|
|
2297
2300
|
PyGILState_Release(state);\
|
|
2298
|
-
}
|
|
2301
|
+
} else __pyx_frame_code = NULL;\
|
|
2299
2302
|
} else {\
|
|
2300
2303
|
if (!__Pyx_PyThreadState_Current->tracing) {\
|
|
2301
2304
|
if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
|
|
2302
2305
|
else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
|
|
2303
|
-
if (unlikely(!__pyx_frame_code))
|
|
2304
|
-
ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2305
|
-
}
|
|
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;\
|
|
2306
2309
|
}\
|
|
2307
2310
|
if (unlikely(ret == -1)) goto_error;\
|
|
2308
2311
|
}
|
|
@@ -3120,22 +3123,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
|
|
|
3120
3123
|
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
|
|
3121
3124
|
|
|
3122
3125
|
/* TypeImport.proto */
|
|
3123
|
-
#ifndef
|
|
3124
|
-
#define
|
|
3126
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
|
|
3127
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_4
|
|
3125
3128
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
3126
3129
|
#include <stdalign.h>
|
|
3127
3130
|
#endif
|
|
3128
3131
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
3129
|
-
#define
|
|
3132
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
|
|
3130
3133
|
#else
|
|
3131
|
-
#define
|
|
3134
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
|
|
3132
3135
|
#endif
|
|
3133
|
-
enum
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
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
|
|
3137
3140
|
};
|
|
3138
|
-
static PyTypeObject *
|
|
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);
|
|
3139
3142
|
#endif
|
|
3140
3143
|
|
|
3141
3144
|
/* GetVTable.proto */
|
|
@@ -3695,11 +3698,11 @@ static const char __pyx_k_potential_lost_waiters[] = "_potential_lost_waiters";
|
|
|
3695
3698
|
static const char __pyx_k_context_manager_class_2[] = "_context_manager_class";
|
|
3696
3699
|
static const char __pyx_k_s_has_no_waiters_to_wake[] = "%s has no waiters to wake";
|
|
3697
3700
|
static const char __pyx_k_we_found_a_lost_waiter_s[] = "we found a lost waiter %s";
|
|
3698
|
-
static const char __pyx_k_A_r_d_D_PTTffjj_C_C_D_D_E[] = "\200A\340\010\017\210r\220\025\220d\230*\320$<\270D\300\010\310\010\320PT\320Tf\320fj\320j
|
|
3701
|
+
static const char __pyx_k_A_r_d_D_PTTffjj_C_C_D_D_E[] = "\200A\340\010\017\210r\220\025\220d\230*\320$<\270D\300\010\310\010\320PT\320Tf\320fj\320j\177\360\000\000@\002C\002\360\000\000C\002D\002\360\000\000D\002E\002";
|
|
3699
3702
|
static const char __pyx_k_AbstractPrioritySemaphore[] = "_AbstractPrioritySemaphore";
|
|
3700
3703
|
static const char __pyx_k_r_d_5T9J_Naae_f_C_C_G_G_V_V_W[] = "\320\004\032\230!\340\010\017\210r\220\025\220d\230*\320$5\260T\3209J\310$\320Na\320ae\360\000\000f\001C\002\360\000\000C\002G\002\360\000\000G\002V\002\360\000\000V\002W\002";
|
|
3701
3704
|
static const char __pyx_k_MQ0_3c_5_Kr_e1_1_5_Ks_uA_1_5_1[] = "\320\004M\310Q\3600\000\t\014\2103\210c\220\021\330\014\023\2205\230\004\230K\240r\250\025\250e\2601\330\r\020\220\003\2201\330\014\023\2205\230\004\230K\240s\250%\250u\260A\330\r\020\220\003\2201\330\014\023\2205\230\003\2301\330\r\020\220\003\2201\330\014\023\2205\230\007\230q\330\r\020\220\003\2201\330\014\023\2205\230\004\230K\240r\250\025\250e\2601\330\r\020\220\003\2201\330\014\023\2205\230\004\230K\240s\250%\250u\260A\330\010\017\210q";
|
|
3702
|
-
static const char __pyx_k_T_A_E___iimmzz_M_M_Q_Q_____g_g[] = "\200\001\360\010\000\005\016\210T\320\021)\250\024\320-A\300\024\320E[\320[_\320_i\320im\320mz\320z~\360\000\000
|
|
3705
|
+
static const char __pyx_k_T_A_E___iimmzz_M_M_Q_Q_____g_g[] = "\200\001\360\010\000\005\016\210T\320\021)\250\024\320-A\300\024\320E[\320[_\320_i\320im\320mz\320z~\360\000\000\177\001M\002\360\000\000M\002Q\002\360\000\000Q\002[\002\360\000\000[\002_\002\360\000\000_\002g\002\360\000\000g\002k\002\360\000\000k\002u\002\360\000\000u\002y\002\360\000\000y\002E\003\360\000\000E\003I\003\360\000\000I\003J\003\330\004\014\210G\2201\220F\230,\240a\330\004\007\200v\210W\220A\330\010\022\220!\330\010\027\220q\340\010\027\220t\320\0332\260'\270\025\270c\300\024\320EZ\320Za\320af\320fi\320im\320mv\320v}\360\000\000~\001C\002\360\000\000C\002F\002\360\000\000F\002J\002\360\000\000J\002V\002\360\000\000V\002]\002\360\000\000]\002b\002\360\000\000b\002e\002\360\000\000e\002i\002\360\000\000i\002r\002\360\000\000r\002y\002\360\000\000y\002~\002\360\000\000~\002A\003\360\000\000A\003E\003\360\000\000E\003N\003\360\000\000N\003U\003\360\000\000U\003Z\003\360\000\000Z\003]\003\360\000\000]\003a\003\360\000\000a\003l\003\360\000\000l\003s\003\360\000\000s\003x\003\360\000\000x\003{\003\360\000\000{\003\177\003\360\000\000\177\003O\004\360\000\000O\004V\004\360\000\000V\004W\004\330\004\007\200q\330\010\017\320\017I\310\024\310Q\310g\320U`\320`g\320gh\340\010\017\320\017I\310\024\310Q\310g\320U`\320`a";
|
|
3703
3706
|
static const char __pyx_k_pyx_unpickle__AbstractPriority[] = "__pyx_unpickle__AbstractPrioritySemaphoreContextManager";
|
|
3704
3707
|
static const char __pyx_k_AT_EZZeeffjjv_w_N_N_Y_Y_Z_Z_j_j[] = "\200\001\330\004\020\320\020)\250\033\260A\260T\270\034\320EZ\320Ze\320ef\320fj\320jv\360\000\000w\001N\002\360\000\000N\002Y\002\360\000\000Y\002Z\002\360\000\000Z\002^\002\360\000\000^\002j\002\360\000\000j\002u\002\360\000\000u\002@\003\360\000\000@\003A\003\360\000\000A\003E\003\360\000\000E\003Q\003\360\000\000Q\003_\003\360\000\000_\003j\003\360\000\000j\003k\003\360\000\000k\003o\003\360\000\000o\003{\003\360\000\000{\003J\004\360\000\000J\004U\004\360\000\000U\004V\004\360\000\000V\004Z\004\360\000\000Z\004f\004\360\000\000f\004q\004\360\000\000q\004|\004\360\000\000|\004}\004\360\000\000}\004A\005\360\000\000A\005M\005\360\000\000M\005V\005\360\000\000V\005a\005\360\000\000a\005b\005\360\000\000b\005f\005\360\000\000f\005r\005\360\000\000r\005}\005\360\000\000}\005H\006\360\000\000H\006I\006\360\000\000I\006M\006\360\000\000M\006Y\006\360\000\000Y\006f\006\360\000\000f\006q\006\360\000\000q\006r\006\360\000\000r\006v\006\360\000\000v\006B\007\360\000\000B\007T\007\360\000\000T\007_\007\360\000\000_\007`\007\360\000\000`\007a\007\330\004\007\200s\210!\210=\230\002\230#\230T\240\027\250\001\250\036\260q\330\010\024\220I\230W\240A\240[\260\001\260\021";
|
|
3705
3708
|
static const char __pyx_k_AbstractPrioritySemaphoreContex[] = "_AbstractPrioritySemaphoreContextManager__acquire";
|
|
@@ -3719,11 +3722,11 @@ static const char __pyx_k_PrioritySemaphoreContextManager[] = "_PrioritySemaphor
|
|
|
3719
3722
|
static const char __pyx_k_Releases_the_semaphore_for_this[] = "Releases the semaphore for this context manager.\n\n This method overrides :meth:`Semaphore.release` to handle priority-based logic.\n\n Examples:\n >>> context_manager = _AbstractPrioritySemaphoreContextManager(parent, priority=1)\n >>> context_manager.release()\n ";
|
|
3720
3723
|
static const char __pyx_k_This_module_provides_priority_b[] = "\nThis module provides priority-based semaphore implementations. These semaphores allow \nwaiters to be assigned priorities, ensuring that higher priority waiters are \nprocessed before lower priority ones.\n";
|
|
3721
3724
|
static const char __pyx_k_UUV0_3c_4_E_1_4_U_1_5_1_1_5_q_1[] = "\320\004U\320UV\3600\000\t\014\2103\210c\220\021\330\014\023\2204\220{\240\"\240E\250\021\330\r\020\220\003\2201\330\014\023\2204\220{\240#\240U\250!\330\r\020\220\003\2201\330\014\023\2205\230\003\2301\330\r\020\220\003\2201\330\014\023\2205\230\007\230q\330\r\020\220\003\2201\330\014\023\2204\220{\240\"\240E\250\021\330\r\020\220\003\2201\330\014\023\2204\220{\240#\240U\250!\330\010\017\210q";
|
|
3722
|
-
static const char __pyx_k_hk_A_1_A_A_B_81A_7_J_Kv_w_E_E_F[] = "\200\001\360\006\000\005\010\200
|
|
3725
|
+
static const char __pyx_k_hk_A_1_A_A_B_81A_7_J_Kv_w_E_E_F[] = "\200\001\360\006\000\005\010\200\177\220h\230k\250\033\260A\330\010\r\210^\2301\330\010\016\320\016!\360\000\000\"\177\003\360\000\000\177\003A\004\360\000\000A\004B\004\330\004\023\320\023;\2708\3001\300A\330\004\007\200|\2207\230!\330\010J\310!\320Kv\360\000\000w\001E\002\360\000\000E\002F\002\330\004\013\2101";
|
|
3723
3726
|
static const char __pyx_k_not_manager__Semaphore__waiters[] = "not manager._Semaphore__waiters";
|
|
3724
3727
|
static const char __pyx_k_A_4_Q_AT_4q_aq_3a_avU_TYY_AT_q_A[] = "\200A\330\010\013\2104\320\017\"\240#\240Q\330\014\022\220*\230A\230T\240\021\360\n\000\t\034\2304\230q\330\010\032\320\032*\250$\250a\250q\330\010\013\320\013\033\2303\230a\330\014\036\320\036>\270a\270v\300U\310*\320TY\320Y]\320]^\330\014\024\220A\220T\320\031/\250q\330\014\034\230A\230U\240,\250a\330\010\017\210q";
|
|
3725
3728
|
static const char __pyx_k_A_9CuCy_4q_4q_4q_aq_3a_d_9_j_T_A[] = "\200A\360\010\000\t\014\2109\220C\220u\230C\230y\250\003\2504\250q\330\014\023\2204\220q\340\010\033\2304\230q\330\010\032\320\032*\250$\250a\250q\330\010\013\320\013\033\2303\230a\330\014\036\230d\320\"9\270\021\330\020\026\220j\240\005\240T\250\021\340\014\024\220A\220T\320\031/\250q\330\014\034\230A\230\\\250\021\330\010\017\210q";
|
|
3726
|
-
static const char __pyx_k_A_a_Q_q_1_a_haq_q_Qa_q_a_XQ_1_1A[] = "\200A\360&\000\t\023\220$\220a\330\010\032\230'\240\021\330\010!\240\024\240Q\330\010\025\320\025'\240q\250\001\330\010\013\2101\330\014\027\220
|
|
3729
|
+
static const char __pyx_k_A_a_Q_q_1_a_haq_q_Qa_q_a_XQ_1_1A[] = "\200A\360&\000\t\023\220$\220a\330\010\032\230'\240\021\330\010!\240\024\240Q\330\010\025\320\025'\240q\250\001\330\010\013\2101\330\014\027\220\177\240a\330\014\022\220!\330\020\031\230\030\240\021\330\020&\240h\250a\250q\330\020\023\220<\230q\240\001\330\024\032\230+\240Q\240a\330\024\027\220q\330\030!\240\021\240/\260\021\330\024\025\340\010\016\210a\330\014\025\220X\230Q\330\014\"\240(\250!\2501\330\014\017\210|\2301\230A\330\020\026\220k\240\021\240!\330\020\023\2201\330\024\035\230Q\230o\250Q\330\020\021\340\010!\240\024\240Q\330\010\016\210a\330\014\026\220g\230Q\230a\330\014\017\210s\220!\2209\230C\230q\340\020\023\2201\330\024\035\230Q\330\030\031\330\031 \320 1\260\024\260Q\340\020\024\320\024&\240d\250!\2507\260!\330\020\021\340\014\026\220a\330\014\030\230\003\2301\230A\340\014\036\230g\240Q\330\014\017\210q\330\020\031\230\021\320\0324\260G\320;L\310A\330\020\023\2204\220q\330\024\035\230Q\320\036A\300\021\340\014\017\210q\330\020\033\230?\250!\330\020\031\230\030\240\021\330\020&\240h\250a\250q\330\020\023\220<\230q\240\001\330\024\032\230+\240Q\240a\330\024\036\230a\330\024\027\220q\330\030!\240\021\240/\260\021\330\024\025\340\020\023\2204\220q\330\024\032\230!\330\030!\240\030\250\021\330\030.\250h\260a\260q\330\030\033\230<\240q\250\001\330\034\"\240+\250Q\250a\330\034&\240a\330\034\037\230q\330 )\250\021\250/\270\021\330\034\035\340\014\017\210t\2201\330\020\024\320\024&\240d\250!\2507\260!\330\020\021\340\014\026\220c\230\021\230!\340\014\023\220:\230R\230y\250\002\250*\3204D\300A\340\014\017\210q\340\020\030\230\001\230\036\240q\360\006\000\021\025\320\024&\240d\250!\2507\260!\330\014\r\360\006\000\t\014\2104\210q\330\014\022\220!\330\020\031\320\031/\250t\2601\330\020\023\220<\230q\240\001\330\024\032\230+\240Q\240a\330\024\025\330\014\r\340\010\016\210a\330\014\025\320\025+\2504\250q\330\014\025\220Q\320\0264\260A\330\014\017\210|\2301\230A\330\020\026\220k\240\021\240!\330\020\031\230\021\320\0325\260Q\330\020\021\340\010\021\220\021\320\0220""\260\001";
|
|
3727
3730
|
static const char __pyx_k_Checks_if_the_semaphore_is_locke[] = "Checks if the semaphore is locked.\n\n Returns:\n True if the semaphore cannot be acquired immediately, False otherwise.\n\n Examples:\n >>> semaphore = _AbstractPrioritySemaphore(5)\n >>> semaphore.locked()\n ";
|
|
3728
3731
|
static const char __pyx_k_Enters_the_semaphore_context_acq[] = "Enters the semaphore context, acquiring it with the top priority.\n\n This method is part of the asynchronous context management protocol.\n\n Examples:\n >>> semaphore = _AbstractPrioritySemaphore(5)\n >>> async with semaphore:\n ... await do_stuff()\n ";
|
|
3729
3732
|
static const char __pyx_k_Exits_the_semaphore_context_rele[] = "Exits the semaphore context, releasing it with the top priority.\n\n This method is part of the asynchronous context management protocol.\n\n Examples:\n >>> semaphore = _AbstractPrioritySemaphore(5)\n >>> async with semaphore:\n ... await do_stuff()\n ";
|
|
@@ -6851,8 +6854,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrio
|
|
|
6851
6854
|
*/
|
|
6852
6855
|
__Pyx_TraceLine(250,70,0,__PYX_ERR(0, 250, __pyx_L1_error))
|
|
6853
6856
|
while (1) {
|
|
6854
|
-
|
|
6855
|
-
|
|
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
|
+
|
|
6856
6865
|
if (!__pyx_t_6) break;
|
|
6857
6866
|
|
|
6858
6867
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":251
|
|
@@ -7638,8 +7647,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrio
|
|
|
7638
7647
|
*/
|
|
7639
7648
|
__Pyx_TraceLine(311,218,0,__PYX_ERR(0, 311, __pyx_L1_error))
|
|
7640
7649
|
while (1) {
|
|
7641
|
-
|
|
7642
|
-
|
|
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
|
+
|
|
7643
7658
|
if (!__pyx_t_9) break;
|
|
7644
7659
|
|
|
7645
7660
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":312
|
|
@@ -7738,8 +7753,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_14prio_semaphore_26_AbstractPrio
|
|
|
7738
7753
|
*/
|
|
7739
7754
|
__Pyx_TraceLine(318,234,0,__PYX_ERR(0, 318, __pyx_L1_error))
|
|
7740
7755
|
while (1) {
|
|
7741
|
-
|
|
7742
|
-
|
|
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
|
+
|
|
7743
7764
|
if (!__pyx_t_9) break;
|
|
7744
7765
|
|
|
7745
7766
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":319
|
|
@@ -13626,6 +13647,7 @@ static struct PyMemberDef __pyx_tp_members_PrioritySemaphore[] = {
|
|
|
13626
13647
|
{NULL, 0, 0, 0, NULL}
|
|
13627
13648
|
};
|
|
13628
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},
|
|
13629
13651
|
{Py_sq_item, (void *)__pyx_sq_item_6a_sync_10primitives_5locks_14prio_semaphore_PrioritySemaphore},
|
|
13630
13652
|
{Py_mp_subscript, (void *)__pyx_pw_6a_sync_10primitives_5locks_14prio_semaphore_17PrioritySemaphore_5__getitem__},
|
|
13631
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.")},
|
|
@@ -14019,6 +14041,7 @@ static struct PyMemberDef __pyx_tp_members__PrioritySemaphoreContextManager[] =
|
|
|
14019
14041
|
{NULL, 0, 0, 0, NULL}
|
|
14020
14042
|
};
|
|
14021
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},
|
|
14022
14045
|
{Py_tp_doc, (void *)PyDoc_STR("Context manager for numeric priority semaphores.")},
|
|
14023
14046
|
{Py_tp_traverse, (void *)__pyx_tp_traverse_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager},
|
|
14024
14047
|
{Py_tp_clear, (void *)__pyx_tp_clear_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphoreContextManager},
|
|
@@ -14684,15 +14707,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
14684
14707
|
/*--- Type init code ---*/
|
|
14685
14708
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives.locks.semaphore"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
14686
14709
|
__Pyx_GOTREF(__pyx_t_1);
|
|
14687
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_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",
|
|
14688
14711
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
14689
|
-
sizeof(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),
|
|
14690
14713
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
14691
|
-
sizeof(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),
|
|
14692
14715
|
#else
|
|
14693
|
-
sizeof(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),
|
|
14694
14717
|
#endif
|
|
14695
|
-
|
|
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)
|
|
14696
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)
|
|
14697
14720
|
__pyx_vtabptr_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore = &__pyx_vtable_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore;
|
|
14698
14721
|
__pyx_vtable_6a_sync_10primitives_5locks_14prio_semaphore__AbstractPrioritySemaphore.__pyx_base = *__pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_Semaphore;
|
|
@@ -14921,61 +14944,61 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
14921
14944
|
/*--- Type import code ---*/
|
|
14922
14945
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives._loggable"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
|
|
14923
14946
|
__Pyx_GOTREF(__pyx_t_1);
|
|
14924
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_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",
|
|
14925
14948
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
14926
|
-
sizeof(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),
|
|
14927
14950
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
14928
|
-
sizeof(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),
|
|
14929
14952
|
#else
|
|
14930
|
-
sizeof(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),
|
|
14931
14954
|
#endif
|
|
14932
|
-
|
|
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)
|
|
14933
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)
|
|
14934
14957
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
14935
14958
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3, __pyx_L1_error)
|
|
14936
14959
|
__Pyx_GOTREF(__pyx_t_1);
|
|
14937
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_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",
|
|
14938
14961
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
14939
|
-
sizeof(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),
|
|
14940
14963
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
14941
|
-
sizeof(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),
|
|
14942
14965
|
#else
|
|
14943
|
-
sizeof(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),
|
|
14944
14967
|
#endif
|
|
14945
|
-
|
|
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)
|
|
14946
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)
|
|
14947
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_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",
|
|
14948
14971
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
14949
|
-
sizeof(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),
|
|
14950
14973
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
14951
|
-
sizeof(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),
|
|
14952
14975
|
#else
|
|
14953
|
-
sizeof(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),
|
|
14954
14977
|
#endif
|
|
14955
|
-
|
|
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)
|
|
14956
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)
|
|
14957
14980
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
14958
14981
|
__pyx_t_1 = PyImport_ImportModule("a_sync.primitives.locks.semaphore"); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 15, __pyx_L1_error)
|
|
14959
14982
|
__Pyx_GOTREF(__pyx_t_1);
|
|
14960
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_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",
|
|
14961
14984
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
14962
|
-
sizeof(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),
|
|
14963
14986
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
14964
|
-
sizeof(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),
|
|
14965
14988
|
#else
|
|
14966
|
-
sizeof(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),
|
|
14967
14990
|
#endif
|
|
14968
|
-
|
|
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)
|
|
14969
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)
|
|
14970
|
-
__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_9semaphore_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",
|
|
14971
14994
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
14972
|
-
sizeof(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),
|
|
14973
14996
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
14974
|
-
sizeof(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),
|
|
14975
14998
|
#else
|
|
14976
|
-
sizeof(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),
|
|
14977
15000
|
#endif
|
|
14978
|
-
|
|
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)
|
|
14979
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)
|
|
14980
15003
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
14981
15004
|
__Pyx_RefNannyFinishContext();
|
|
@@ -15291,7 +15314,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15291
15314
|
(void)__Pyx_modinit_variable_import_code(__pyx_mstate);
|
|
15292
15315
|
(void)__Pyx_modinit_function_import_code(__pyx_mstate);
|
|
15293
15316
|
/*--- Execution code ---*/
|
|
15294
|
-
__Pyx_TraceStartFunc("PyInit_prio_semaphore", __pyx_f[0], 1,
|
|
15317
|
+
__Pyx_TraceStartFunc("PyInit_prio_semaphore", __pyx_f[0], 1, 5, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
|
|
15295
15318
|
|
|
15296
15319
|
/* "a_sync/primitives/locks/prio_semaphore.pyx":8
|
|
15297
15320
|
* """
|
|
@@ -15792,7 +15815,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15792
15815
|
* def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
|
|
15793
15816
|
* raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
|
|
15794
15817
|
*/
|
|
15795
|
-
__Pyx_TraceLine(3,
|
|
15818
|
+
__Pyx_TraceLine(3,7,0,__PYX_ERR(1, 3, __pyx_L1_error))
|
|
15796
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)
|
|
15797
15820
|
__Pyx_GOTREF(__pyx_t_3);
|
|
15798
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)
|
|
@@ -15863,7 +15886,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15863
15886
|
* cdef tuple state
|
|
15864
15887
|
* cdef object _dict
|
|
15865
15888
|
*/
|
|
15866
|
-
__Pyx_TraceLine(1,
|
|
15889
|
+
__Pyx_TraceLine(1,3,0,__PYX_ERR(1, 1, __pyx_L1_error))
|
|
15867
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)
|
|
15868
15891
|
__Pyx_GOTREF(__pyx_t_4);
|
|
15869
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)
|
|
@@ -15916,7 +15939,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15916
15939
|
* raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
|
|
15917
15940
|
* def __setstate_cython__(self, __pyx_state):
|
|
15918
15941
|
*/
|
|
15919
|
-
__Pyx_TraceLine(1,
|
|
15942
|
+
__Pyx_TraceLine(1,4,0,__PYX_ERR(1, 1, __pyx_L1_error))
|
|
15920
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)
|
|
15921
15944
|
__Pyx_GOTREF(__pyx_t_4);
|
|
15922
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)
|
|
@@ -15928,7 +15951,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15928
15951
|
* def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
|
|
15929
15952
|
* raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
|
|
15930
15953
|
*/
|
|
15931
|
-
__Pyx_TraceLine(3,
|
|
15954
|
+
__Pyx_TraceLine(3,6,0,__PYX_ERR(1, 3, __pyx_L1_error))
|
|
15932
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)
|
|
15933
15956
|
__Pyx_GOTREF(__pyx_t_4);
|
|
15934
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)
|
|
@@ -15949,7 +15972,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15949
15972
|
* raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
|
|
15950
15973
|
* def __setstate_cython__(self, __pyx_state):
|
|
15951
15974
|
*/
|
|
15952
|
-
__Pyx_TraceLine(1,
|
|
15975
|
+
__Pyx_TraceLine(1,2,0,__PYX_ERR(1, 1, __pyx_L1_error))
|
|
15953
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)
|
|
15954
15977
|
__Pyx_GOTREF(__pyx_t_4);
|
|
15955
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)
|
|
@@ -15981,7 +16004,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
15981
16004
|
* cdef object __pyx_PickleError
|
|
15982
16005
|
* cdef object __pyx_result
|
|
15983
16006
|
*/
|
|
15984
|
-
__Pyx_TraceLine(1,
|
|
16007
|
+
__Pyx_TraceLine(1,1,0,__PYX_ERR(1, 1, __pyx_L1_error))
|
|
15985
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)
|
|
15986
16009
|
__Pyx_GOTREF(__pyx_t_4);
|
|
15987
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)
|
|
@@ -16002,7 +16025,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
16002
16025
|
* """
|
|
16003
16026
|
* This module provides priority-based semaphore implementations. These semaphores allow
|
|
16004
16027
|
*/
|
|
16005
|
-
__Pyx_TraceLine(1,
|
|
16028
|
+
__Pyx_TraceLine(1,5,0,__PYX_ERR(0, 1, __pyx_L1_error))
|
|
16006
16029
|
__pyx_t_4 = __Pyx_PyDict_NewPresized(11); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
16007
16030
|
__Pyx_GOTREF(__pyx_t_4);
|
|
16008
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)
|
|
@@ -16018,7 +16041,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
16018
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)
|
|
16019
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)
|
|
16020
16043
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
16021
|
-
__Pyx_TraceReturnValue(Py_None,
|
|
16044
|
+
__Pyx_TraceReturnValue(Py_None, 5, 0, __PYX_ERR(0, 1, __pyx_L1_error));
|
|
16022
16045
|
__Pyx_PyMonitoring_ExitScope(0);
|
|
16023
16046
|
|
|
16024
16047
|
/*--- Wrapped vars code ---*/
|
|
@@ -16031,7 +16054,7 @@ __Pyx_RefNannySetupContext("PyInit_prio_semaphore", 0);
|
|
|
16031
16054
|
__Pyx_XDECREF(__pyx_t_5);
|
|
16032
16055
|
__Pyx_XDECREF(__pyx_t_7);
|
|
16033
16056
|
__Pyx_TraceException(__pyx_lineno, 0, 0);
|
|
16034
|
-
__Pyx_TraceExceptionUnwind(
|
|
16057
|
+
__Pyx_TraceExceptionUnwind(5, 0);
|
|
16035
16058
|
if (__pyx_m) {
|
|
16036
16059
|
if (__pyx_mstate->__pyx_d && stringtab_initialized) {
|
|
16037
16060
|
__Pyx_AddTraceback("init a_sync.primitives.locks.prio_semaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
@@ -18626,6 +18649,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
18626
18649
|
changed = 1;
|
|
18627
18650
|
}
|
|
18628
18651
|
#endif // CYTHON_METH_FASTCALL
|
|
18652
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
18629
18653
|
else if (strcmp(memb->name, "__module__") == 0) {
|
|
18630
18654
|
PyObject *descr;
|
|
18631
18655
|
assert(memb->type == T_OBJECT);
|
|
@@ -18640,11 +18664,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
18640
18664
|
}
|
|
18641
18665
|
changed = 1;
|
|
18642
18666
|
}
|
|
18667
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
18643
18668
|
}
|
|
18644
18669
|
memb++;
|
|
18645
18670
|
}
|
|
18646
18671
|
}
|
|
18647
18672
|
#endif // !CYTHON_COMPILING_IN_LIMITED_API
|
|
18673
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
18648
18674
|
slot = spec->slots;
|
|
18649
18675
|
while (slot && slot->slot && slot->slot != Py_tp_getset)
|
|
18650
18676
|
slot++;
|
|
@@ -18676,6 +18702,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
18676
18702
|
++getset;
|
|
18677
18703
|
}
|
|
18678
18704
|
}
|
|
18705
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
18679
18706
|
if (changed)
|
|
18680
18707
|
PyType_Modified(type);
|
|
18681
18708
|
#endif // PY_VERSION_HEX > 0x030900B1
|
|
@@ -18808,7 +18835,7 @@ bad:
|
|
|
18808
18835
|
}
|
|
18809
18836
|
|
|
18810
18837
|
/* CommonTypesMetaclass */
|
|
18811
|
-
PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
18838
|
+
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
18812
18839
|
return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
|
|
18813
18840
|
}
|
|
18814
18841
|
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
|
|
@@ -18837,6 +18864,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
|
|
|
18837
18864
|
return -1;
|
|
18838
18865
|
}
|
|
18839
18866
|
mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
|
|
18867
|
+
Py_DECREF(bases);
|
|
18840
18868
|
if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
|
|
18841
18869
|
return -1;
|
|
18842
18870
|
}
|
|
@@ -19232,7 +19260,7 @@ try_unpack:
|
|
|
19232
19260
|
}
|
|
19233
19261
|
|
|
19234
19262
|
/* PyObjectCallMethod1 */
|
|
19235
|
-
#if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
|
|
19263
|
+
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
|
|
19236
19264
|
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
19237
19265
|
PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
|
|
19238
19266
|
Py_DECREF(method);
|
|
@@ -19240,7 +19268,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
|
19240
19268
|
}
|
|
19241
19269
|
#endif
|
|
19242
19270
|
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
|
|
19243
|
-
#if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
|
|
19271
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
19244
19272
|
PyObject *args[2] = {obj, arg};
|
|
19245
19273
|
(void) __Pyx_PyObject_GetMethod;
|
|
19246
19274
|
(void) __Pyx_PyObject_CallOneArg;
|
|
@@ -20915,6 +20943,13 @@ static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObje
|
|
|
20915
20943
|
|
|
20916
20944
|
/* PyObjectCallMethod0 */
|
|
20917
20945
|
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
|
|
20946
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
20947
|
+
PyObject *args[1] = {obj};
|
|
20948
|
+
(void) __Pyx_PyObject_GetMethod;
|
|
20949
|
+
(void) __Pyx_PyObject_CallOneArg;
|
|
20950
|
+
(void) __Pyx_PyObject_CallNoArg;
|
|
20951
|
+
return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
|
|
20952
|
+
#else
|
|
20918
20953
|
PyObject *method = NULL, *result = NULL;
|
|
20919
20954
|
int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
|
|
20920
20955
|
if (likely(is_method)) {
|
|
@@ -20927,6 +20962,7 @@ static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObje
|
|
|
20927
20962
|
Py_DECREF(method);
|
|
20928
20963
|
bad:
|
|
20929
20964
|
return result;
|
|
20965
|
+
#endif
|
|
20930
20966
|
}
|
|
20931
20967
|
|
|
20932
20968
|
/* RaiseNeedMoreValuesToUnpack */
|
|
@@ -21545,15 +21581,15 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
|
21545
21581
|
}
|
|
21546
21582
|
|
|
21547
21583
|
/* TypeImport */
|
|
21548
|
-
#ifndef
|
|
21549
|
-
#define
|
|
21550
|
-
static PyTypeObject *
|
|
21551
|
-
size_t size, size_t alignment, enum
|
|
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)
|
|
21552
21588
|
{
|
|
21553
21589
|
PyObject *result = 0;
|
|
21554
21590
|
Py_ssize_t basicsize;
|
|
21555
21591
|
Py_ssize_t itemsize;
|
|
21556
|
-
#
|
|
21592
|
+
#ifdef Py_LIMITED_API
|
|
21557
21593
|
PyObject *py_basicsize;
|
|
21558
21594
|
PyObject *py_itemsize;
|
|
21559
21595
|
#endif
|
|
@@ -21566,7 +21602,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
21566
21602
|
module_name, class_name);
|
|
21567
21603
|
goto bad;
|
|
21568
21604
|
}
|
|
21569
|
-
#
|
|
21605
|
+
#ifndef Py_LIMITED_API
|
|
21570
21606
|
basicsize = ((PyTypeObject *)result)->tp_basicsize;
|
|
21571
21607
|
itemsize = ((PyTypeObject *)result)->tp_itemsize;
|
|
21572
21608
|
#else
|
|
@@ -21604,7 +21640,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
21604
21640
|
module_name, class_name, size, basicsize+itemsize);
|
|
21605
21641
|
goto bad;
|
|
21606
21642
|
}
|
|
21607
|
-
if (check_size ==
|
|
21643
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
|
|
21608
21644
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
21609
21645
|
PyErr_Format(PyExc_ValueError,
|
|
21610
21646
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -21612,7 +21648,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
21612
21648
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
21613
21649
|
goto bad;
|
|
21614
21650
|
}
|
|
21615
|
-
else if (check_size ==
|
|
21651
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
|
|
21616
21652
|
if (PyErr_WarnFormat(NULL, 0,
|
|
21617
21653
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
21618
21654
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -25095,6 +25131,10 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
|
|
|
25095
25131
|
PyCode_NewWithPosOnlyArgs
|
|
25096
25132
|
#endif
|
|
25097
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
|
|
25098
25138
|
return result;
|
|
25099
25139
|
}
|
|
25100
25140
|
#elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from a_sync._typing import *
|
|
2
2
|
import asyncio
|
|
3
|
-
|
|
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:
|
|
8
|
+
logger: logging.Logger
|
|
9
9
|
|
|
10
10
|
class Priority(Protocol):
|
|
11
11
|
def __lt__(self, other) -> bool: ...
|