ez-a-sync 0.32.11__cp39-cp39-win32.whl → 0.32.13__cp39-cp39-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 +1122 -1133
- a_sync/_smart.cp39-win32.pyd +0 -0
- a_sync/_smart.pyx +11 -10
- a_sync/a_sync/_descriptor.cp39-win32.pyd +0 -0
- a_sync/a_sync/_flags.cp39-win32.pyd +0 -0
- a_sync/a_sync/_helpers.cp39-win32.pyd +0 -0
- a_sync/a_sync/_kwargs.cp39-win32.pyd +0 -0
- a_sync/a_sync/abstract.cp39-win32.pyd +0 -0
- a_sync/a_sync/base.cp39-win32.pyd +0 -0
- a_sync/a_sync/flags.cp39-win32.pyd +0 -0
- a_sync/a_sync/function.cp39-win32.pyd +0 -0
- a_sync/a_sync/method.cp39-win32.pyd +0 -0
- a_sync/a_sync/modifiers/manager.cp39-win32.pyd +0 -0
- a_sync/a_sync/property.cp39-win32.pyd +0 -0
- a_sync/async_property/cached.cp39-win32.pyd +0 -0
- a_sync/async_property/proxy.cp39-win32.pyd +0 -0
- a_sync/asyncio/as_completed.cp39-win32.pyd +0 -0
- a_sync/asyncio/create_task.c +735 -579
- a_sync/asyncio/create_task.cp39-win32.pyd +0 -0
- a_sync/asyncio/create_task.pyx +7 -4
- a_sync/asyncio/gather.cp39-win32.pyd +0 -0
- a_sync/asyncio/igather.cp39-win32.pyd +0 -0
- a_sync/asyncio/sleep.cp39-win32.pyd +0 -0
- a_sync/debugging.c +3 -2
- a_sync/debugging.cp39-win32.pyd +0 -0
- a_sync/exceptions.cp39-win32.pyd +0 -0
- a_sync/functools.cp39-win32.pyd +0 -0
- a_sync/iter.c +216 -81
- a_sync/iter.cp39-win32.pyd +0 -0
- a_sync/iter.pxd +2 -0
- a_sync/primitives/_debug.cp39-win32.pyd +0 -0
- a_sync/primitives/_loggable.cp39-win32.pyd +0 -0
- a_sync/primitives/locks/counter.cp39-win32.pyd +0 -0
- a_sync/primitives/locks/event.c +426 -428
- a_sync/primitives/locks/event.cp39-win32.pyd +0 -0
- a_sync/primitives/locks/event.pyx +3 -1
- a_sync/primitives/locks/prio_semaphore.c +2623 -1503
- a_sync/primitives/locks/prio_semaphore.cp39-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.pxd +9 -8
- a_sync/primitives/locks/prio_semaphore.pyx +65 -22
- a_sync/primitives/locks/semaphore.c +1048 -1051
- a_sync/primitives/locks/semaphore.cp39-win32.pyd +0 -0
- a_sync/primitives/locks/semaphore.pyx +4 -2
- a_sync/task.py +22 -6
- a_sync/utils/repr.cp39-win32.pyd +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/RECORD +50 -50
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/WHEEL +1 -1
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/top_level.txt +0 -0
a_sync/primitives/locks/event.c
CHANGED
|
@@ -1575,7 +1575,7 @@ struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent {
|
|
|
1575
1575
|
};
|
|
1576
1576
|
|
|
1577
1577
|
|
|
1578
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
1578
|
+
/* "a_sync/primitives/locks/event.pyx":23
|
|
1579
1579
|
*
|
|
1580
1580
|
*
|
|
1581
1581
|
* async def _return_true(): # <<<<<<<<<<<<<<
|
|
@@ -1587,7 +1587,7 @@ struct __pyx_obj_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_
|
|
|
1587
1587
|
};
|
|
1588
1588
|
|
|
1589
1589
|
|
|
1590
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
1590
|
+
/* "a_sync/primitives/locks/event.pyx":154
|
|
1591
1591
|
* return self.__name.decode("utf-8")
|
|
1592
1592
|
*
|
|
1593
1593
|
* async def __wait(self, fut: Future) -> Literal[True]: # <<<<<<<<<<<<<<
|
|
@@ -1601,7 +1601,7 @@ struct __pyx_obj_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__Cython
|
|
|
1601
1601
|
};
|
|
1602
1602
|
|
|
1603
1603
|
|
|
1604
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
1604
|
+
/* "a_sync/primitives/locks/event.pyx":161
|
|
1605
1605
|
* self._waiters.remove(fut)
|
|
1606
1606
|
*
|
|
1607
1607
|
* async def _debug_daemon(self) -> None: # <<<<<<<<<<<<<<
|
|
@@ -1665,7 +1665,7 @@ struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__DebugDaemonMixin {
|
|
|
1665
1665
|
static struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__DebugDaemonMixin *__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin;
|
|
1666
1666
|
|
|
1667
1667
|
|
|
1668
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
1668
|
+
/* "a_sync/primitives/locks/event.pyx":29
|
|
1669
1669
|
* cdef bint _loop_kwarg_deprecated = sys.version_info >= (3, 10)
|
|
1670
1670
|
*
|
|
1671
1671
|
* cdef class CythonEvent(_DebugDaemonMixin): # <<<<<<<<<<<<<<
|
|
@@ -2810,6 +2810,8 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
2810
2810
|
|
|
2811
2811
|
/* Module declarations from "libc.time" */
|
|
2812
2812
|
|
|
2813
|
+
/* Module declarations from "cpython.unicode" */
|
|
2814
|
+
|
|
2813
2815
|
/* Module declarations from "a_sync.primitives.locks.event" */
|
|
2814
2816
|
static int __pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated;
|
|
2815
2817
|
static CYTHON_INLINE int __pyx_f_6a_sync_10primitives_5locks_5event__is_not_done(PyObject *); /*proto*/
|
|
@@ -2878,7 +2880,6 @@ static const char __pyx_k_reduce[] = "__reduce__";
|
|
|
2878
2880
|
static const char __pyx_k_remove[] = "remove";
|
|
2879
2881
|
static const char __pyx_k_return[] = "return";
|
|
2880
2882
|
static const char __pyx_k_wait_2[] = "__wait";
|
|
2881
|
-
static const char __pyx_k_PENDING[] = "PENDING";
|
|
2882
2883
|
static const char __pyx_k_asyncio[] = "asyncio";
|
|
2883
2884
|
static const char __pyx_k_disable[] = "disable";
|
|
2884
2885
|
static const char __pyx_k_inspect[] = "inspect";
|
|
@@ -2993,6 +2994,8 @@ typedef struct {
|
|
|
2993
2994
|
#if CYTHON_USE_MODULE_STATE
|
|
2994
2995
|
#endif
|
|
2995
2996
|
#if CYTHON_USE_MODULE_STATE
|
|
2997
|
+
#endif
|
|
2998
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2996
2999
|
PyObject *__pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent;
|
|
2997
3000
|
PyObject *__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true;
|
|
2998
3001
|
PyObject *__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait;
|
|
@@ -3018,7 +3021,6 @@ typedef struct {
|
|
|
3018
3021
|
PyObject *__pyx_kp_s_Literal_True;
|
|
3019
3022
|
PyObject *__pyx_n_s_MemoryError;
|
|
3020
3023
|
PyObject *__pyx_n_s_None;
|
|
3021
|
-
PyObject *__pyx_n_u_PENDING;
|
|
3022
3024
|
PyObject *__pyx_n_s_TypeError;
|
|
3023
3025
|
PyObject *__pyx_n_s_ValueError;
|
|
3024
3026
|
PyObject *__pyx_kp_u_Waiting_for_s_for_sm;
|
|
@@ -3195,7 +3197,6 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3195
3197
|
Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_True);
|
|
3196
3198
|
Py_CLEAR(clear_module_state->__pyx_n_s_MemoryError);
|
|
3197
3199
|
Py_CLEAR(clear_module_state->__pyx_n_s_None);
|
|
3198
|
-
Py_CLEAR(clear_module_state->__pyx_n_u_PENDING);
|
|
3199
3200
|
Py_CLEAR(clear_module_state->__pyx_n_s_TypeError);
|
|
3200
3201
|
Py_CLEAR(clear_module_state->__pyx_n_s_ValueError);
|
|
3201
3202
|
Py_CLEAR(clear_module_state->__pyx_kp_u_Waiting_for_s_for_sm);
|
|
@@ -3350,7 +3351,6 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3350
3351
|
Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_True);
|
|
3351
3352
|
Py_VISIT(traverse_module_state->__pyx_n_s_MemoryError);
|
|
3352
3353
|
Py_VISIT(traverse_module_state->__pyx_n_s_None);
|
|
3353
|
-
Py_VISIT(traverse_module_state->__pyx_n_u_PENDING);
|
|
3354
3354
|
Py_VISIT(traverse_module_state->__pyx_n_s_TypeError);
|
|
3355
3355
|
Py_VISIT(traverse_module_state->__pyx_n_s_ValueError);
|
|
3356
3356
|
Py_VISIT(traverse_module_state->__pyx_kp_u_Waiting_for_s_for_sm);
|
|
@@ -3504,6 +3504,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3504
3504
|
#if CYTHON_USE_MODULE_STATE
|
|
3505
3505
|
#endif
|
|
3506
3506
|
#if CYTHON_USE_MODULE_STATE
|
|
3507
|
+
#endif
|
|
3508
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3507
3509
|
#define __pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent __pyx_mstate_global->__pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent
|
|
3508
3510
|
#define __pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true __pyx_mstate_global->__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true
|
|
3509
3511
|
#define __pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait __pyx_mstate_global->__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait
|
|
@@ -3529,7 +3531,6 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3529
3531
|
#define __pyx_kp_s_Literal_True __pyx_mstate_global->__pyx_kp_s_Literal_True
|
|
3530
3532
|
#define __pyx_n_s_MemoryError __pyx_mstate_global->__pyx_n_s_MemoryError
|
|
3531
3533
|
#define __pyx_n_s_None __pyx_mstate_global->__pyx_n_s_None
|
|
3532
|
-
#define __pyx_n_u_PENDING __pyx_mstate_global->__pyx_n_u_PENDING
|
|
3533
3534
|
#define __pyx_n_s_TypeError __pyx_mstate_global->__pyx_n_s_TypeError
|
|
3534
3535
|
#define __pyx_n_s_ValueError __pyx_mstate_global->__pyx_n_s_ValueError
|
|
3535
3536
|
#define __pyx_kp_u_Waiting_for_s_for_sm __pyx_mstate_global->__pyx_kp_u_Waiting_for_s_for_sm
|
|
@@ -3640,7 +3641,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3640
3641
|
/* #### Code section: module_code ### */
|
|
3641
3642
|
static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
3642
3643
|
|
|
3643
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3644
|
+
/* "a_sync/primitives/locks/event.pyx":23
|
|
3644
3645
|
*
|
|
3645
3646
|
*
|
|
3646
3647
|
* async def _return_true(): # <<<<<<<<<<<<<<
|
|
@@ -3677,12 +3678,12 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event__return_true(CYTHON
|
|
|
3677
3678
|
if (unlikely(!__pyx_cur_scope)) {
|
|
3678
3679
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true *)Py_None);
|
|
3679
3680
|
__Pyx_INCREF(Py_None);
|
|
3680
|
-
__PYX_ERR(0,
|
|
3681
|
+
__PYX_ERR(0, 23, __pyx_L1_error)
|
|
3681
3682
|
} else {
|
|
3682
3683
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
3683
3684
|
}
|
|
3684
3685
|
{
|
|
3685
|
-
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_10primitives_5locks_5event_2generator, __pyx_codeobj_, (PyObject *) __pyx_cur_scope, __pyx_n_s_return_true, __pyx_n_s_return_true, __pyx_n_s_a_sync_primitives_locks_event); if (unlikely(!gen)) __PYX_ERR(0,
|
|
3686
|
+
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_10primitives_5locks_5event_2generator, __pyx_codeobj_, (PyObject *) __pyx_cur_scope, __pyx_n_s_return_true, __pyx_n_s_return_true, __pyx_n_s_a_sync_primitives_locks_event); if (unlikely(!gen)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
3686
3687
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
3687
3688
|
__Pyx_RefNannyFinishContext();
|
|
3688
3689
|
return (PyObject *) gen;
|
|
@@ -3708,7 +3709,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_2generator(__pyx_Co
|
|
|
3708
3709
|
__Pyx_RefNannyDeclarations
|
|
3709
3710
|
__Pyx_RefNannySetupContext("_return_true", 0);
|
|
3710
3711
|
__Pyx_TraceFrameInit(__pyx_codeobj_)
|
|
3711
|
-
__Pyx_TraceCall("_return_true", __pyx_f[0],
|
|
3712
|
+
__Pyx_TraceCall("_return_true", __pyx_f[0], 23, 0, __PYX_ERR(0, 23, __pyx_L1_error));
|
|
3712
3713
|
switch (__pyx_generator->resume_label) {
|
|
3713
3714
|
case 0: goto __pyx_L3_first_run;
|
|
3714
3715
|
default: /* CPython raises the right error here */
|
|
@@ -3717,21 +3718,21 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_2generator(__pyx_Co
|
|
|
3717
3718
|
return NULL;
|
|
3718
3719
|
}
|
|
3719
3720
|
__pyx_L3_first_run:;
|
|
3720
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
3721
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
3721
3722
|
|
|
3722
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3723
|
+
/* "a_sync/primitives/locks/event.pyx":24
|
|
3723
3724
|
*
|
|
3724
3725
|
* async def _return_true():
|
|
3725
3726
|
* return True # <<<<<<<<<<<<<<
|
|
3726
3727
|
*
|
|
3727
3728
|
*
|
|
3728
3729
|
*/
|
|
3729
|
-
__Pyx_TraceLine(
|
|
3730
|
+
__Pyx_TraceLine(24,0,__PYX_ERR(0, 24, __pyx_L1_error))
|
|
3730
3731
|
__Pyx_XDECREF(__pyx_r);
|
|
3731
3732
|
__pyx_r = NULL; __Pyx_ReturnWithStopIteration(Py_True);
|
|
3732
3733
|
goto __pyx_L0;
|
|
3733
3734
|
|
|
3734
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3735
|
+
/* "a_sync/primitives/locks/event.pyx":23
|
|
3735
3736
|
*
|
|
3736
3737
|
*
|
|
3737
3738
|
* async def _return_true(): # <<<<<<<<<<<<<<
|
|
@@ -3755,7 +3756,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_2generator(__pyx_Co
|
|
|
3755
3756
|
return __pyx_r;
|
|
3756
3757
|
}
|
|
3757
3758
|
|
|
3758
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3759
|
+
/* "a_sync/primitives/locks/event.pyx":37
|
|
3759
3760
|
* diagnosing and debugging potential deadlocks.
|
|
3760
3761
|
* """
|
|
3761
3762
|
* def __cinit__(self): # <<<<<<<<<<<<<<
|
|
@@ -3796,17 +3797,17 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent___cinit__(s
|
|
|
3796
3797
|
const char *__pyx_filename = NULL;
|
|
3797
3798
|
int __pyx_clineno = 0;
|
|
3798
3799
|
__Pyx_RefNannySetupContext("__cinit__", 1);
|
|
3799
|
-
__Pyx_TraceCall("__cinit__", __pyx_f[0],
|
|
3800
|
+
__Pyx_TraceCall("__cinit__", __pyx_f[0], 37, 0, __PYX_ERR(0, 37, __pyx_L1_error));
|
|
3800
3801
|
|
|
3801
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3802
|
+
/* "a_sync/primitives/locks/event.pyx":38
|
|
3802
3803
|
* """
|
|
3803
3804
|
* def __cinit__(self):
|
|
3804
3805
|
* self._waiters = [] # <<<<<<<<<<<<<<
|
|
3805
3806
|
*
|
|
3806
3807
|
* def __init__(
|
|
3807
3808
|
*/
|
|
3808
|
-
__Pyx_TraceLine(
|
|
3809
|
-
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
3809
|
+
__Pyx_TraceLine(38,0,__PYX_ERR(0, 38, __pyx_L1_error))
|
|
3810
|
+
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
|
|
3810
3811
|
__Pyx_GOTREF(__pyx_t_1);
|
|
3811
3812
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
3812
3813
|
__Pyx_GOTREF(__pyx_v_self->_waiters);
|
|
@@ -3814,7 +3815,7 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent___cinit__(s
|
|
|
3814
3815
|
__pyx_v_self->_waiters = ((PyObject*)__pyx_t_1);
|
|
3815
3816
|
__pyx_t_1 = 0;
|
|
3816
3817
|
|
|
3817
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3818
|
+
/* "a_sync/primitives/locks/event.pyx":37
|
|
3818
3819
|
* diagnosing and debugging potential deadlocks.
|
|
3819
3820
|
* """
|
|
3820
3821
|
* def __cinit__(self): # <<<<<<<<<<<<<<
|
|
@@ -3835,7 +3836,7 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent___cinit__(s
|
|
|
3835
3836
|
return __pyx_r;
|
|
3836
3837
|
}
|
|
3837
3838
|
|
|
3838
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3839
|
+
/* "a_sync/primitives/locks/event.pyx":40
|
|
3839
3840
|
* self._waiters = []
|
|
3840
3841
|
*
|
|
3841
3842
|
* def __init__( # <<<<<<<<<<<<<<
|
|
@@ -3873,7 +3874,7 @@ static int __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_3__init__(P
|
|
|
3873
3874
|
values[0] = __Pyx_Arg_NewRef_VARARGS(((PyObject*)__pyx_kp_u__2));
|
|
3874
3875
|
values[1] = __Pyx_Arg_NewRef_VARARGS(__pyx_k__3);
|
|
3875
3876
|
|
|
3876
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3877
|
+
/* "a_sync/primitives/locks/event.pyx":45
|
|
3877
3878
|
* debug_daemon_interval: int = 300,
|
|
3878
3879
|
* *,
|
|
3879
3880
|
* loop: Optional[AbstractEventLoop] = None, # <<<<<<<<<<<<<<
|
|
@@ -3897,25 +3898,25 @@ static int __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_3__init__(P
|
|
|
3897
3898
|
if (kw_args > 0) {
|
|
3898
3899
|
PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name);
|
|
3899
3900
|
if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
|
|
3900
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3901
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L3_error)
|
|
3901
3902
|
}
|
|
3902
3903
|
CYTHON_FALLTHROUGH;
|
|
3903
3904
|
case 1:
|
|
3904
3905
|
if (kw_args > 0) {
|
|
3905
3906
|
PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_debug_daemon_interval);
|
|
3906
3907
|
if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
|
|
3907
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3908
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L3_error)
|
|
3908
3909
|
}
|
|
3909
3910
|
}
|
|
3910
3911
|
if (kw_args == 1) {
|
|
3911
3912
|
const Py_ssize_t index = 2;
|
|
3912
3913
|
PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, *__pyx_pyargnames[index]);
|
|
3913
3914
|
if (value) { values[index] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
|
|
3914
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3915
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L3_error)
|
|
3915
3916
|
}
|
|
3916
3917
|
if (unlikely(kw_args > 0)) {
|
|
3917
3918
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
3918
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0,
|
|
3919
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 40, __pyx_L3_error)
|
|
3919
3920
|
}
|
|
3920
3921
|
} else {
|
|
3921
3922
|
switch (__pyx_nargs) {
|
|
@@ -3933,7 +3934,7 @@ static int __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_3__init__(P
|
|
|
3933
3934
|
}
|
|
3934
3935
|
goto __pyx_L6_skip;
|
|
3935
3936
|
__pyx_L5_argtuple_error:;
|
|
3936
|
-
__Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0,
|
|
3937
|
+
__Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 40, __pyx_L3_error)
|
|
3937
3938
|
__pyx_L6_skip:;
|
|
3938
3939
|
goto __pyx_L4_argument_unpacking_done;
|
|
3939
3940
|
__pyx_L3_error:;
|
|
@@ -3947,11 +3948,11 @@ static int __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_3__init__(P
|
|
|
3947
3948
|
__Pyx_RefNannyFinishContext();
|
|
3948
3949
|
return -1;
|
|
3949
3950
|
__pyx_L4_argument_unpacking_done:;
|
|
3950
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 1))) __PYX_ERR(0,
|
|
3951
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_debug_daemon_interval), (&PyInt_Type), 0, "debug_daemon_interval", 1))) __PYX_ERR(0,
|
|
3951
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 1))) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
3952
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_debug_daemon_interval), (&PyInt_Type), 0, "debug_daemon_interval", 1))) __PYX_ERR(0, 43, __pyx_L1_error)
|
|
3952
3953
|
__pyx_r = __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(((struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self), __pyx_v_name, __pyx_v_debug_daemon_interval, __pyx_v_loop);
|
|
3953
3954
|
|
|
3954
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3955
|
+
/* "a_sync/primitives/locks/event.pyx":40
|
|
3955
3956
|
* self._waiters = []
|
|
3956
3957
|
*
|
|
3957
3958
|
* def __init__( # <<<<<<<<<<<<<<
|
|
@@ -3993,27 +3994,27 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
3993
3994
|
const char *__pyx_filename = NULL;
|
|
3994
3995
|
int __pyx_clineno = 0;
|
|
3995
3996
|
__Pyx_RefNannySetupContext("__init__", 1);
|
|
3996
|
-
__Pyx_TraceCall("__init__", __pyx_f[0],
|
|
3997
|
+
__Pyx_TraceCall("__init__", __pyx_f[0], 40, 0, __PYX_ERR(0, 40, __pyx_L1_error));
|
|
3997
3998
|
|
|
3998
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
3999
|
+
/* "a_sync/primitives/locks/event.pyx":55
|
|
3999
4000
|
* loop (Optional[AbstractEventLoop]): The event loop to use.
|
|
4000
4001
|
* """
|
|
4001
4002
|
* if _loop_kwarg_deprecated: # <<<<<<<<<<<<<<
|
|
4002
4003
|
* _LoopBoundMixin.__init__(self)
|
|
4003
4004
|
* else:
|
|
4004
4005
|
*/
|
|
4005
|
-
__Pyx_TraceLine(
|
|
4006
|
+
__Pyx_TraceLine(55,0,__PYX_ERR(0, 55, __pyx_L1_error))
|
|
4006
4007
|
if (__pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated) {
|
|
4007
4008
|
|
|
4008
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4009
|
+
/* "a_sync/primitives/locks/event.pyx":56
|
|
4009
4010
|
* """
|
|
4010
4011
|
* if _loop_kwarg_deprecated:
|
|
4011
4012
|
* _LoopBoundMixin.__init__(self) # <<<<<<<<<<<<<<
|
|
4012
4013
|
* else:
|
|
4013
4014
|
* _LoopBoundMixin.__init__(self, loop=loop)
|
|
4014
4015
|
*/
|
|
4015
|
-
__Pyx_TraceLine(
|
|
4016
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin), __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4016
|
+
__Pyx_TraceLine(56,0,__PYX_ERR(0, 56, __pyx_L1_error))
|
|
4017
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin), __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error)
|
|
4017
4018
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4018
4019
|
__pyx_t_3 = NULL;
|
|
4019
4020
|
__pyx_t_4 = 0;
|
|
@@ -4033,13 +4034,13 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4033
4034
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, ((PyObject *)__pyx_v_self)};
|
|
4034
4035
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4035
4036
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4036
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4037
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error)
|
|
4037
4038
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4038
4039
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4039
4040
|
}
|
|
4040
4041
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4041
4042
|
|
|
4042
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4043
|
+
/* "a_sync/primitives/locks/event.pyx":55
|
|
4043
4044
|
* loop (Optional[AbstractEventLoop]): The event loop to use.
|
|
4044
4045
|
* """
|
|
4045
4046
|
* if _loop_kwarg_deprecated: # <<<<<<<<<<<<<<
|
|
@@ -4049,26 +4050,26 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4049
4050
|
goto __pyx_L3;
|
|
4050
4051
|
}
|
|
4051
4052
|
|
|
4052
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4053
|
+
/* "a_sync/primitives/locks/event.pyx":58
|
|
4053
4054
|
* _LoopBoundMixin.__init__(self)
|
|
4054
4055
|
* else:
|
|
4055
4056
|
* _LoopBoundMixin.__init__(self, loop=loop) # <<<<<<<<<<<<<<
|
|
4056
4057
|
*
|
|
4057
4058
|
* # backwards compatability
|
|
4058
4059
|
*/
|
|
4059
|
-
__Pyx_TraceLine(
|
|
4060
|
+
__Pyx_TraceLine(58,0,__PYX_ERR(0, 58, __pyx_L1_error))
|
|
4060
4061
|
/*else*/ {
|
|
4061
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4062
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error)
|
|
4062
4063
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4063
|
-
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4064
|
+
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error)
|
|
4064
4065
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4065
4066
|
__Pyx_INCREF((PyObject *)__pyx_v_self);
|
|
4066
4067
|
__Pyx_GIVEREF((PyObject *)__pyx_v_self);
|
|
4067
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))) __PYX_ERR(0,
|
|
4068
|
-
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4068
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))) __PYX_ERR(0, 58, __pyx_L1_error);
|
|
4069
|
+
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 58, __pyx_L1_error)
|
|
4069
4070
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4070
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4071
|
-
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0,
|
|
4071
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 58, __pyx_L1_error)
|
|
4072
|
+
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 58, __pyx_L1_error)
|
|
4072
4073
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4073
4074
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4074
4075
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
@@ -4077,28 +4078,28 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4077
4078
|
}
|
|
4078
4079
|
__pyx_L3:;
|
|
4079
4080
|
|
|
4080
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4081
|
+
/* "a_sync/primitives/locks/event.pyx":61
|
|
4081
4082
|
*
|
|
4082
4083
|
* # backwards compatability
|
|
4083
4084
|
* if hasattr(self, "_loop"): # <<<<<<<<<<<<<<
|
|
4084
4085
|
* self._loop = self._loop or get_event_loop()
|
|
4085
4086
|
* if debug_daemon_interval > 65535:
|
|
4086
4087
|
*/
|
|
4087
|
-
__Pyx_TraceLine(
|
|
4088
|
-
__pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v_self), __pyx_n_u_loop_2); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0,
|
|
4088
|
+
__Pyx_TraceLine(61,0,__PYX_ERR(0, 61, __pyx_L1_error))
|
|
4089
|
+
__pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v_self), __pyx_n_u_loop_2); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 61, __pyx_L1_error)
|
|
4089
4090
|
if (__pyx_t_6) {
|
|
4090
4091
|
|
|
4091
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4092
|
+
/* "a_sync/primitives/locks/event.pyx":62
|
|
4092
4093
|
* # backwards compatability
|
|
4093
4094
|
* if hasattr(self, "_loop"):
|
|
4094
4095
|
* self._loop = self._loop or get_event_loop() # <<<<<<<<<<<<<<
|
|
4095
4096
|
* if debug_daemon_interval > 65535:
|
|
4096
4097
|
* raise ValueError(f"'debug_daemon_interval' is stored as a uint16 and must be less than 65535")
|
|
4097
4098
|
*/
|
|
4098
|
-
__Pyx_TraceLine(
|
|
4099
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_loop_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4099
|
+
__Pyx_TraceLine(62,0,__PYX_ERR(0, 62, __pyx_L1_error))
|
|
4100
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_loop_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 62, __pyx_L1_error)
|
|
4100
4101
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4101
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4102
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 62, __pyx_L1_error)
|
|
4102
4103
|
if (!__pyx_t_6) {
|
|
4103
4104
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4104
4105
|
} else {
|
|
@@ -4107,7 +4108,7 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4107
4108
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4108
4109
|
goto __pyx_L5_bool_binop_done;
|
|
4109
4110
|
}
|
|
4110
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_event_loop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4111
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_event_loop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error)
|
|
4111
4112
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4112
4113
|
__pyx_t_1 = NULL;
|
|
4113
4114
|
__pyx_t_4 = 0;
|
|
@@ -4127,7 +4128,7 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4127
4128
|
PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
|
|
4128
4129
|
__pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
|
|
4129
4130
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4130
|
-
if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4131
|
+
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 62, __pyx_L1_error)
|
|
4131
4132
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4132
4133
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4133
4134
|
}
|
|
@@ -4135,10 +4136,10 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4135
4136
|
__pyx_t_5 = __pyx_t_3;
|
|
4136
4137
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4137
4138
|
__pyx_L5_bool_binop_done:;
|
|
4138
|
-
if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_loop_2, __pyx_t_5) < 0) __PYX_ERR(0,
|
|
4139
|
+
if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_loop_2, __pyx_t_5) < 0) __PYX_ERR(0, 62, __pyx_L1_error)
|
|
4139
4140
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4140
4141
|
|
|
4141
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4142
|
+
/* "a_sync/primitives/locks/event.pyx":61
|
|
4142
4143
|
*
|
|
4143
4144
|
* # backwards compatability
|
|
4144
4145
|
* if hasattr(self, "_loop"): # <<<<<<<<<<<<<<
|
|
@@ -4147,34 +4148,34 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4147
4148
|
*/
|
|
4148
4149
|
}
|
|
4149
4150
|
|
|
4150
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4151
|
+
/* "a_sync/primitives/locks/event.pyx":63
|
|
4151
4152
|
* if hasattr(self, "_loop"):
|
|
4152
4153
|
* self._loop = self._loop or get_event_loop()
|
|
4153
4154
|
* if debug_daemon_interval > 65535: # <<<<<<<<<<<<<<
|
|
4154
4155
|
* raise ValueError(f"'debug_daemon_interval' is stored as a uint16 and must be less than 65535")
|
|
4155
4156
|
* self._debug_daemon_interval = debug_daemon_interval
|
|
4156
4157
|
*/
|
|
4157
|
-
__Pyx_TraceLine(
|
|
4158
|
-
__pyx_t_5 = PyObject_RichCompare(__pyx_v_debug_daemon_interval, __pyx_int_65535, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0,
|
|
4159
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4158
|
+
__Pyx_TraceLine(63,0,__PYX_ERR(0, 63, __pyx_L1_error))
|
|
4159
|
+
__pyx_t_5 = PyObject_RichCompare(__pyx_v_debug_daemon_interval, __pyx_int_65535, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 63, __pyx_L1_error)
|
|
4160
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 63, __pyx_L1_error)
|
|
4160
4161
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4161
4162
|
if (unlikely(__pyx_t_6)) {
|
|
4162
4163
|
|
|
4163
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4164
|
+
/* "a_sync/primitives/locks/event.pyx":64
|
|
4164
4165
|
* self._loop = self._loop or get_event_loop()
|
|
4165
4166
|
* if debug_daemon_interval > 65535:
|
|
4166
4167
|
* raise ValueError(f"'debug_daemon_interval' is stored as a uint16 and must be less than 65535") # <<<<<<<<<<<<<<
|
|
4167
4168
|
* self._debug_daemon_interval = debug_daemon_interval
|
|
4168
4169
|
* # we need a constant to coerce to char*
|
|
4169
4170
|
*/
|
|
4170
|
-
__Pyx_TraceLine(
|
|
4171
|
-
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0,
|
|
4171
|
+
__Pyx_TraceLine(64,0,__PYX_ERR(0, 64, __pyx_L1_error))
|
|
4172
|
+
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
4172
4173
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4173
4174
|
__Pyx_Raise(__pyx_t_5, 0, 0, 0);
|
|
4174
4175
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4175
|
-
__PYX_ERR(0,
|
|
4176
|
+
__PYX_ERR(0, 64, __pyx_L1_error)
|
|
4176
4177
|
|
|
4177
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4178
|
+
/* "a_sync/primitives/locks/event.pyx":63
|
|
4178
4179
|
* if hasattr(self, "_loop"):
|
|
4179
4180
|
* self._loop = self._loop or get_event_loop()
|
|
4180
4181
|
* if debug_daemon_interval > 65535: # <<<<<<<<<<<<<<
|
|
@@ -4183,81 +4184,81 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4183
4184
|
*/
|
|
4184
4185
|
}
|
|
4185
4186
|
|
|
4186
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4187
|
+
/* "a_sync/primitives/locks/event.pyx":65
|
|
4187
4188
|
* if debug_daemon_interval > 65535:
|
|
4188
4189
|
* raise ValueError(f"'debug_daemon_interval' is stored as a uint16 and must be less than 65535")
|
|
4189
4190
|
* self._debug_daemon_interval = debug_daemon_interval # <<<<<<<<<<<<<<
|
|
4190
4191
|
* # we need a constant to coerce to char*
|
|
4191
4192
|
* cdef bytes encoded_name = name.encode("utf-8")
|
|
4192
4193
|
*/
|
|
4193
|
-
__Pyx_TraceLine(
|
|
4194
|
-
__pyx_t_7 = __Pyx_PyInt_As_uint16_t(__pyx_v_debug_daemon_interval); if (unlikely((__pyx_t_7 == ((uint16_t)-1)) && PyErr_Occurred())) __PYX_ERR(0,
|
|
4194
|
+
__Pyx_TraceLine(65,0,__PYX_ERR(0, 65, __pyx_L1_error))
|
|
4195
|
+
__pyx_t_7 = __Pyx_PyInt_As_uint16_t(__pyx_v_debug_daemon_interval); if (unlikely((__pyx_t_7 == ((uint16_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 65, __pyx_L1_error)
|
|
4195
4196
|
__pyx_v_self->_debug_daemon_interval = __pyx_t_7;
|
|
4196
4197
|
|
|
4197
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4198
|
+
/* "a_sync/primitives/locks/event.pyx":67
|
|
4198
4199
|
* self._debug_daemon_interval = debug_daemon_interval
|
|
4199
4200
|
* # we need a constant to coerce to char*
|
|
4200
4201
|
* cdef bytes encoded_name = name.encode("utf-8") # <<<<<<<<<<<<<<
|
|
4201
4202
|
* cdef Py_ssize_t length = len(encoded_name)
|
|
4202
4203
|
*
|
|
4203
4204
|
*/
|
|
4204
|
-
__Pyx_TraceLine(
|
|
4205
|
-
__pyx_t_5 = PyUnicode_AsUTF8String(__pyx_v_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0,
|
|
4205
|
+
__Pyx_TraceLine(67,0,__PYX_ERR(0, 67, __pyx_L1_error))
|
|
4206
|
+
__pyx_t_5 = PyUnicode_AsUTF8String(__pyx_v_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 67, __pyx_L1_error)
|
|
4206
4207
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4207
4208
|
__pyx_v_encoded_name = ((PyObject*)__pyx_t_5);
|
|
4208
4209
|
__pyx_t_5 = 0;
|
|
4209
4210
|
|
|
4210
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4211
|
+
/* "a_sync/primitives/locks/event.pyx":68
|
|
4211
4212
|
* # we need a constant to coerce to char*
|
|
4212
4213
|
* cdef bytes encoded_name = name.encode("utf-8")
|
|
4213
4214
|
* cdef Py_ssize_t length = len(encoded_name) # <<<<<<<<<<<<<<
|
|
4214
4215
|
*
|
|
4215
4216
|
* # Allocate memory for the char* and add 1 for the null character
|
|
4216
4217
|
*/
|
|
4217
|
-
__Pyx_TraceLine(
|
|
4218
|
+
__Pyx_TraceLine(68,0,__PYX_ERR(0, 68, __pyx_L1_error))
|
|
4218
4219
|
if (unlikely(__pyx_v_encoded_name == Py_None)) {
|
|
4219
4220
|
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
|
|
4220
|
-
__PYX_ERR(0,
|
|
4221
|
+
__PYX_ERR(0, 68, __pyx_L1_error)
|
|
4221
4222
|
}
|
|
4222
|
-
__pyx_t_8 = __Pyx_PyBytes_GET_SIZE(__pyx_v_encoded_name); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0,
|
|
4223
|
+
__pyx_t_8 = __Pyx_PyBytes_GET_SIZE(__pyx_v_encoded_name); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 68, __pyx_L1_error)
|
|
4223
4224
|
__pyx_v_length = __pyx_t_8;
|
|
4224
4225
|
|
|
4225
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4226
|
+
/* "a_sync/primitives/locks/event.pyx":71
|
|
4226
4227
|
*
|
|
4227
4228
|
* # Allocate memory for the char* and add 1 for the null character
|
|
4228
4229
|
* self.__name = <char*>malloc(length + 1) # <<<<<<<<<<<<<<
|
|
4229
4230
|
* """An optional name for the counter, used in debug logs."""
|
|
4230
4231
|
*
|
|
4231
4232
|
*/
|
|
4232
|
-
__Pyx_TraceLine(
|
|
4233
|
+
__Pyx_TraceLine(71,0,__PYX_ERR(0, 71, __pyx_L1_error))
|
|
4233
4234
|
__pyx_v_self->_CythonEvent__name = ((char *)malloc((__pyx_v_length + 1)));
|
|
4234
4235
|
|
|
4235
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4236
|
+
/* "a_sync/primitives/locks/event.pyx":74
|
|
4236
4237
|
* """An optional name for the counter, used in debug logs."""
|
|
4237
4238
|
*
|
|
4238
4239
|
* if self.__name == NULL: # <<<<<<<<<<<<<<
|
|
4239
4240
|
* raise MemoryError("Failed to allocate memory for __name.")
|
|
4240
4241
|
* # Copy the bytes data into the char*
|
|
4241
4242
|
*/
|
|
4242
|
-
__Pyx_TraceLine(
|
|
4243
|
+
__Pyx_TraceLine(74,0,__PYX_ERR(0, 74, __pyx_L1_error))
|
|
4243
4244
|
__pyx_t_6 = (__pyx_v_self->_CythonEvent__name == NULL);
|
|
4244
4245
|
if (unlikely(__pyx_t_6)) {
|
|
4245
4246
|
|
|
4246
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4247
|
+
/* "a_sync/primitives/locks/event.pyx":75
|
|
4247
4248
|
*
|
|
4248
4249
|
* if self.__name == NULL:
|
|
4249
4250
|
* raise MemoryError("Failed to allocate memory for __name.") # <<<<<<<<<<<<<<
|
|
4250
4251
|
* # Copy the bytes data into the char*
|
|
4251
4252
|
* strcpy(self.__name, encoded_name)
|
|
4252
4253
|
*/
|
|
4253
|
-
__Pyx_TraceLine(
|
|
4254
|
-
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0,
|
|
4254
|
+
__Pyx_TraceLine(75,0,__PYX_ERR(0, 75, __pyx_L1_error))
|
|
4255
|
+
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 75, __pyx_L1_error)
|
|
4255
4256
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4256
4257
|
__Pyx_Raise(__pyx_t_5, 0, 0, 0);
|
|
4257
4258
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4258
|
-
__PYX_ERR(0,
|
|
4259
|
+
__PYX_ERR(0, 75, __pyx_L1_error)
|
|
4259
4260
|
|
|
4260
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4261
|
+
/* "a_sync/primitives/locks/event.pyx":74
|
|
4261
4262
|
* """An optional name for the counter, used in debug logs."""
|
|
4262
4263
|
*
|
|
4263
4264
|
* if self.__name == NULL: # <<<<<<<<<<<<<<
|
|
@@ -4266,22 +4267,22 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4266
4267
|
*/
|
|
4267
4268
|
}
|
|
4268
4269
|
|
|
4269
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4270
|
+
/* "a_sync/primitives/locks/event.pyx":77
|
|
4270
4271
|
* raise MemoryError("Failed to allocate memory for __name.")
|
|
4271
4272
|
* # Copy the bytes data into the char*
|
|
4272
4273
|
* strcpy(self.__name, encoded_name) # <<<<<<<<<<<<<<
|
|
4273
4274
|
*
|
|
4274
4275
|
* def __dealloc__(self):
|
|
4275
4276
|
*/
|
|
4276
|
-
__Pyx_TraceLine(
|
|
4277
|
+
__Pyx_TraceLine(77,0,__PYX_ERR(0, 77, __pyx_L1_error))
|
|
4277
4278
|
if (unlikely(__pyx_v_encoded_name == Py_None)) {
|
|
4278
4279
|
PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
|
|
4279
|
-
__PYX_ERR(0,
|
|
4280
|
+
__PYX_ERR(0, 77, __pyx_L1_error)
|
|
4280
4281
|
}
|
|
4281
|
-
__pyx_t_9 = __Pyx_PyBytes_AsString(__pyx_v_encoded_name); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(0,
|
|
4282
|
+
__pyx_t_9 = __Pyx_PyBytes_AsString(__pyx_v_encoded_name); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(0, 77, __pyx_L1_error)
|
|
4282
4283
|
(void)(strcpy(__pyx_v_self->_CythonEvent__name, __pyx_t_9));
|
|
4283
4284
|
|
|
4284
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4285
|
+
/* "a_sync/primitives/locks/event.pyx":40
|
|
4285
4286
|
* self._waiters = []
|
|
4286
4287
|
*
|
|
4287
4288
|
* def __init__( # <<<<<<<<<<<<<<
|
|
@@ -4306,7 +4307,7 @@ static int __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__(s
|
|
|
4306
4307
|
return __pyx_r;
|
|
4307
4308
|
}
|
|
4308
4309
|
|
|
4309
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4310
|
+
/* "a_sync/primitives/locks/event.pyx":79
|
|
4310
4311
|
* strcpy(self.__name, encoded_name)
|
|
4311
4312
|
*
|
|
4312
4313
|
* def __dealloc__(self): # <<<<<<<<<<<<<<
|
|
@@ -4333,30 +4334,30 @@ static void __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_4__dealloc
|
|
|
4333
4334
|
int __pyx_lineno = 0;
|
|
4334
4335
|
const char *__pyx_filename = NULL;
|
|
4335
4336
|
int __pyx_clineno = 0;
|
|
4336
|
-
__Pyx_TraceCall("__dealloc__", __pyx_f[0],
|
|
4337
|
+
__Pyx_TraceCall("__dealloc__", __pyx_f[0], 79, 0, __PYX_ERR(0, 79, __pyx_L1_error));
|
|
4337
4338
|
|
|
4338
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4339
|
+
/* "a_sync/primitives/locks/event.pyx":81
|
|
4339
4340
|
* def __dealloc__(self):
|
|
4340
4341
|
* # Free the memory allocated for __name
|
|
4341
4342
|
* if self.__name is not NULL: # <<<<<<<<<<<<<<
|
|
4342
4343
|
* free(self.__name)
|
|
4343
4344
|
*
|
|
4344
4345
|
*/
|
|
4345
|
-
__Pyx_TraceLine(
|
|
4346
|
+
__Pyx_TraceLine(81,0,__PYX_ERR(0, 81, __pyx_L1_error))
|
|
4346
4347
|
__pyx_t_1 = (__pyx_v_self->_CythonEvent__name != NULL);
|
|
4347
4348
|
if (__pyx_t_1) {
|
|
4348
4349
|
|
|
4349
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4350
|
+
/* "a_sync/primitives/locks/event.pyx":82
|
|
4350
4351
|
* # Free the memory allocated for __name
|
|
4351
4352
|
* if self.__name is not NULL:
|
|
4352
4353
|
* free(self.__name) # <<<<<<<<<<<<<<
|
|
4353
4354
|
*
|
|
4354
4355
|
* def __repr__(self) -> str:
|
|
4355
4356
|
*/
|
|
4356
|
-
__Pyx_TraceLine(
|
|
4357
|
+
__Pyx_TraceLine(82,0,__PYX_ERR(0, 82, __pyx_L1_error))
|
|
4357
4358
|
free(__pyx_v_self->_CythonEvent__name);
|
|
4358
4359
|
|
|
4359
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4360
|
+
/* "a_sync/primitives/locks/event.pyx":81
|
|
4360
4361
|
* def __dealloc__(self):
|
|
4361
4362
|
* # Free the memory allocated for __name
|
|
4362
4363
|
* if self.__name is not NULL: # <<<<<<<<<<<<<<
|
|
@@ -4365,7 +4366,7 @@ static void __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_4__dealloc
|
|
|
4365
4366
|
*/
|
|
4366
4367
|
}
|
|
4367
4368
|
|
|
4368
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4369
|
+
/* "a_sync/primitives/locks/event.pyx":79
|
|
4369
4370
|
* strcpy(self.__name, encoded_name)
|
|
4370
4371
|
*
|
|
4371
4372
|
* def __dealloc__(self): # <<<<<<<<<<<<<<
|
|
@@ -4381,7 +4382,7 @@ static void __pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_4__dealloc
|
|
|
4381
4382
|
__Pyx_TraceReturn(Py_None, 0);
|
|
4382
4383
|
}
|
|
4383
4384
|
|
|
4384
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4385
|
+
/* "a_sync/primitives/locks/event.pyx":84
|
|
4385
4386
|
* free(self.__name)
|
|
4386
4387
|
*
|
|
4387
4388
|
* def __repr__(self) -> str: # <<<<<<<<<<<<<<
|
|
@@ -4425,32 +4426,32 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4425
4426
|
const char *__pyx_filename = NULL;
|
|
4426
4427
|
int __pyx_clineno = 0;
|
|
4427
4428
|
__Pyx_RefNannySetupContext("__repr__", 1);
|
|
4428
|
-
__Pyx_TraceCall("__repr__", __pyx_f[0],
|
|
4429
|
+
__Pyx_TraceCall("__repr__", __pyx_f[0], 84, 0, __PYX_ERR(0, 84, __pyx_L1_error));
|
|
4429
4430
|
|
|
4430
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4431
|
+
/* "a_sync/primitives/locks/event.pyx":87
|
|
4431
4432
|
* cdef str label = (
|
|
4432
4433
|
* "name={}".format(self.__name.decode("utf-8"))
|
|
4433
4434
|
* if self.__name # <<<<<<<<<<<<<<
|
|
4434
4435
|
* else "object"
|
|
4435
4436
|
* )
|
|
4436
4437
|
*/
|
|
4437
|
-
__Pyx_TraceLine(
|
|
4438
|
+
__Pyx_TraceLine(87,0,__PYX_ERR(0, 87, __pyx_L1_error))
|
|
4438
4439
|
__pyx_t_2 = (__pyx_v_self->_CythonEvent__name != 0);
|
|
4439
4440
|
if (__pyx_t_2) {
|
|
4440
4441
|
|
|
4441
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4442
|
+
/* "a_sync/primitives/locks/event.pyx":86
|
|
4442
4443
|
* def __repr__(self) -> str:
|
|
4443
4444
|
* cdef str label = (
|
|
4444
4445
|
* "name={}".format(self.__name.decode("utf-8")) # <<<<<<<<<<<<<<
|
|
4445
4446
|
* if self.__name
|
|
4446
4447
|
* else "object"
|
|
4447
4448
|
*/
|
|
4448
|
-
__Pyx_TraceLine(
|
|
4449
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_name_2, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
4449
|
+
__Pyx_TraceLine(86,0,__PYX_ERR(0, 86, __pyx_L1_error))
|
|
4450
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_name_2, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error)
|
|
4450
4451
|
__Pyx_GOTREF(__pyx_t_4);
|
|
4451
4452
|
__pyx_t_5 = __pyx_v_self->_CythonEvent__name;
|
|
4452
|
-
__pyx_t_6 = __Pyx_ssize_strlen(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0,
|
|
4453
|
-
__pyx_t_7 = __Pyx_decode_c_string(__pyx_t_5, 0, __pyx_t_6, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
4453
|
+
__pyx_t_6 = __Pyx_ssize_strlen(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 86, __pyx_L1_error)
|
|
4454
|
+
__pyx_t_7 = __Pyx_decode_c_string(__pyx_t_5, 0, __pyx_t_6, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 86, __pyx_L1_error)
|
|
4454
4455
|
__Pyx_GOTREF(__pyx_t_7);
|
|
4455
4456
|
__pyx_t_8 = NULL;
|
|
4456
4457
|
__pyx_t_9 = 0;
|
|
@@ -4471,11 +4472,11 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4471
4472
|
__pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
|
|
4472
4473
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
4473
4474
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
4474
|
-
if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4475
|
+
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error)
|
|
4475
4476
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4476
4477
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4477
4478
|
}
|
|
4478
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_3))) __PYX_ERR(0,
|
|
4479
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_3))) __PYX_ERR(0, 86, __pyx_L1_error)
|
|
4479
4480
|
__pyx_t_1 = __pyx_t_3;
|
|
4480
4481
|
__pyx_t_3 = 0;
|
|
4481
4482
|
} else {
|
|
@@ -4485,14 +4486,14 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4485
4486
|
__pyx_v_label = ((PyObject*)__pyx_t_1);
|
|
4486
4487
|
__pyx_t_1 = 0;
|
|
4487
4488
|
|
|
4488
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4489
|
+
/* "a_sync/primitives/locks/event.pyx":91
|
|
4489
4490
|
* )
|
|
4490
4491
|
*
|
|
4491
4492
|
* cdef str status = "set" if self._value else "unset" # <<<<<<<<<<<<<<
|
|
4492
4493
|
*
|
|
4493
4494
|
* if len_waiters := len(self._waiters):
|
|
4494
4495
|
*/
|
|
4495
|
-
__Pyx_TraceLine(
|
|
4496
|
+
__Pyx_TraceLine(91,0,__PYX_ERR(0, 91, __pyx_L1_error))
|
|
4496
4497
|
if (__pyx_v_self->_value) {
|
|
4497
4498
|
__Pyx_INCREF(__pyx_n_u_set);
|
|
4498
4499
|
__pyx_t_1 = __pyx_n_u_set;
|
|
@@ -4503,38 +4504,38 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4503
4504
|
__pyx_v_status = ((PyObject*)__pyx_t_1);
|
|
4504
4505
|
__pyx_t_1 = 0;
|
|
4505
4506
|
|
|
4506
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4507
|
+
/* "a_sync/primitives/locks/event.pyx":93
|
|
4507
4508
|
* cdef str status = "set" if self._value else "unset"
|
|
4508
4509
|
*
|
|
4509
4510
|
* if len_waiters := len(self._waiters): # <<<<<<<<<<<<<<
|
|
4510
4511
|
* status += ", waiters:{}".format(len_waiters)
|
|
4511
4512
|
*
|
|
4512
4513
|
*/
|
|
4513
|
-
__Pyx_TraceLine(
|
|
4514
|
+
__Pyx_TraceLine(93,0,__PYX_ERR(0, 93, __pyx_L1_error))
|
|
4514
4515
|
__pyx_t_1 = __pyx_v_self->_waiters;
|
|
4515
4516
|
__Pyx_INCREF(__pyx_t_1);
|
|
4516
4517
|
if (unlikely(__pyx_t_1 == Py_None)) {
|
|
4517
4518
|
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
|
|
4518
|
-
__PYX_ERR(0,
|
|
4519
|
+
__PYX_ERR(0, 93, __pyx_L1_error)
|
|
4519
4520
|
}
|
|
4520
|
-
__pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0,
|
|
4521
|
+
__pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 93, __pyx_L1_error)
|
|
4521
4522
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4522
|
-
__pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4523
|
+
__pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error)
|
|
4523
4524
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4524
4525
|
__pyx_v_len_waiters = __pyx_t_1;
|
|
4525
4526
|
__pyx_t_1 = 0;
|
|
4526
4527
|
__pyx_t_2 = (__pyx_t_6 != 0);
|
|
4527
4528
|
if (__pyx_t_2) {
|
|
4528
4529
|
|
|
4529
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4530
|
+
/* "a_sync/primitives/locks/event.pyx":94
|
|
4530
4531
|
*
|
|
4531
4532
|
* if len_waiters := len(self._waiters):
|
|
4532
4533
|
* status += ", waiters:{}".format(len_waiters) # <<<<<<<<<<<<<<
|
|
4533
4534
|
*
|
|
4534
4535
|
* return "<{}.{} {} at {} [{}]>".format(
|
|
4535
4536
|
*/
|
|
4536
|
-
__Pyx_TraceLine(
|
|
4537
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_waiters, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4537
|
+
__Pyx_TraceLine(94,0,__PYX_ERR(0, 94, __pyx_L1_error))
|
|
4538
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_waiters, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
|
|
4538
4539
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4539
4540
|
__pyx_t_4 = NULL;
|
|
4540
4541
|
__pyx_t_9 = 0;
|
|
@@ -4554,18 +4555,18 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4554
4555
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_len_waiters};
|
|
4555
4556
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
|
|
4556
4557
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4557
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4558
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
|
|
4558
4559
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4559
4560
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4560
4561
|
}
|
|
4561
|
-
__pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_status, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4562
|
+
__pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_status, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
|
|
4562
4563
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4563
4564
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4564
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_3))) __PYX_ERR(0,
|
|
4565
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_3))) __PYX_ERR(0, 94, __pyx_L1_error)
|
|
4565
4566
|
__Pyx_DECREF_SET(__pyx_v_status, ((PyObject*)__pyx_t_3));
|
|
4566
4567
|
__pyx_t_3 = 0;
|
|
4567
4568
|
|
|
4568
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4569
|
+
/* "a_sync/primitives/locks/event.pyx":93
|
|
4569
4570
|
* cdef str status = "set" if self._value else "unset"
|
|
4570
4571
|
*
|
|
4571
4572
|
* if len_waiters := len(self._waiters): # <<<<<<<<<<<<<<
|
|
@@ -4574,68 +4575,68 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4574
4575
|
*/
|
|
4575
4576
|
}
|
|
4576
4577
|
|
|
4577
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4578
|
+
/* "a_sync/primitives/locks/event.pyx":96
|
|
4578
4579
|
* status += ", waiters:{}".format(len_waiters)
|
|
4579
4580
|
*
|
|
4580
4581
|
* return "<{}.{} {} at {} [{}]>".format( # <<<<<<<<<<<<<<
|
|
4581
4582
|
* self.__class__.__module__,
|
|
4582
4583
|
* self.__class__.__name__,
|
|
4583
4584
|
*/
|
|
4584
|
-
__Pyx_TraceLine(
|
|
4585
|
+
__Pyx_TraceLine(96,0,__PYX_ERR(0, 96, __pyx_L1_error))
|
|
4585
4586
|
__Pyx_XDECREF(__pyx_r);
|
|
4586
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_at, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4587
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_at, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
|
|
4587
4588
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4588
4589
|
|
|
4589
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4590
|
+
/* "a_sync/primitives/locks/event.pyx":97
|
|
4590
4591
|
*
|
|
4591
4592
|
* return "<{}.{} {} at {} [{}]>".format(
|
|
4592
4593
|
* self.__class__.__module__, # <<<<<<<<<<<<<<
|
|
4593
4594
|
* self.__class__.__name__,
|
|
4594
4595
|
* label,
|
|
4595
4596
|
*/
|
|
4596
|
-
__Pyx_TraceLine(
|
|
4597
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
4597
|
+
__Pyx_TraceLine(97,0,__PYX_ERR(0, 97, __pyx_L1_error))
|
|
4598
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error)
|
|
4598
4599
|
__Pyx_GOTREF(__pyx_t_4);
|
|
4599
|
-
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_module); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
4600
|
+
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_module); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 97, __pyx_L1_error)
|
|
4600
4601
|
__Pyx_GOTREF(__pyx_t_7);
|
|
4601
4602
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4602
4603
|
|
|
4603
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4604
|
+
/* "a_sync/primitives/locks/event.pyx":98
|
|
4604
4605
|
* return "<{}.{} {} at {} [{}]>".format(
|
|
4605
4606
|
* self.__class__.__module__,
|
|
4606
4607
|
* self.__class__.__name__, # <<<<<<<<<<<<<<
|
|
4607
4608
|
* label,
|
|
4608
4609
|
* hex(id(self)),
|
|
4609
4610
|
*/
|
|
4610
|
-
__Pyx_TraceLine(
|
|
4611
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
4611
|
+
__Pyx_TraceLine(98,0,__PYX_ERR(0, 98, __pyx_L1_error))
|
|
4612
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L1_error)
|
|
4612
4613
|
__Pyx_GOTREF(__pyx_t_4);
|
|
4613
|
-
__pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
4614
|
+
__pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 98, __pyx_L1_error)
|
|
4614
4615
|
__Pyx_GOTREF(__pyx_t_8);
|
|
4615
4616
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4616
4617
|
|
|
4617
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4618
|
+
/* "a_sync/primitives/locks/event.pyx":100
|
|
4618
4619
|
* self.__class__.__name__,
|
|
4619
4620
|
* label,
|
|
4620
4621
|
* hex(id(self)), # <<<<<<<<<<<<<<
|
|
4621
4622
|
* status,
|
|
4622
4623
|
* )
|
|
4623
4624
|
*/
|
|
4624
|
-
__Pyx_TraceLine(
|
|
4625
|
-
__pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
4625
|
+
__Pyx_TraceLine(100,0,__PYX_ERR(0, 100, __pyx_L1_error))
|
|
4626
|
+
__pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
4626
4627
|
__Pyx_GOTREF(__pyx_t_4);
|
|
4627
|
-
__pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0,
|
|
4628
|
+
__pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
4628
4629
|
__Pyx_GOTREF(__pyx_t_10);
|
|
4629
4630
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4630
4631
|
|
|
4631
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4632
|
+
/* "a_sync/primitives/locks/event.pyx":101
|
|
4632
4633
|
* label,
|
|
4633
4634
|
* hex(id(self)),
|
|
4634
4635
|
* status, # <<<<<<<<<<<<<<
|
|
4635
4636
|
* )
|
|
4636
4637
|
*
|
|
4637
4638
|
*/
|
|
4638
|
-
__Pyx_TraceLine(
|
|
4639
|
+
__Pyx_TraceLine(101,0,__PYX_ERR(0, 101, __pyx_L1_error))
|
|
4639
4640
|
__pyx_t_4 = NULL;
|
|
4640
4641
|
__pyx_t_9 = 0;
|
|
4641
4642
|
#if CYTHON_UNPACK_METHODS
|
|
@@ -4657,7 +4658,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4657
4658
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
4658
4659
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
4659
4660
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
4660
|
-
if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4661
|
+
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
|
|
4661
4662
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4662
4663
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4663
4664
|
}
|
|
@@ -4665,7 +4666,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4665
4666
|
__pyx_t_3 = 0;
|
|
4666
4667
|
goto __pyx_L0;
|
|
4667
4668
|
|
|
4668
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4669
|
+
/* "a_sync/primitives/locks/event.pyx":84
|
|
4669
4670
|
* free(self.__name)
|
|
4670
4671
|
*
|
|
4671
4672
|
* def __repr__(self) -> str: # <<<<<<<<<<<<<<
|
|
@@ -4693,7 +4694,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_6__re
|
|
|
4693
4694
|
return __pyx_r;
|
|
4694
4695
|
}
|
|
4695
4696
|
|
|
4696
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4697
|
+
/* "a_sync/primitives/locks/event.pyx":104
|
|
4697
4698
|
* )
|
|
4698
4699
|
*
|
|
4699
4700
|
* cpdef bint is_set(self): # <<<<<<<<<<<<<<
|
|
@@ -4723,7 +4724,7 @@ static int __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_is_set(struc
|
|
|
4723
4724
|
int __pyx_clineno = 0;
|
|
4724
4725
|
__Pyx_TraceFrameInit(__pyx_codeobj__6)
|
|
4725
4726
|
__Pyx_RefNannySetupContext("is_set", 1);
|
|
4726
|
-
__Pyx_TraceCall("is_set", __pyx_f[0],
|
|
4727
|
+
__Pyx_TraceCall("is_set", __pyx_f[0], 104, 0, __PYX_ERR(0, 104, __pyx_L1_error));
|
|
4727
4728
|
/* Check if called by wrapper */
|
|
4728
4729
|
if (unlikely(__pyx_skip_dispatch)) ;
|
|
4729
4730
|
/* Check if overridden in Python */
|
|
@@ -4733,7 +4734,7 @@ static int __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_is_set(struc
|
|
|
4733
4734
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
4734
4735
|
PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
4735
4736
|
#endif
|
|
4736
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_set); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4737
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_set); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4737
4738
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4738
4739
|
if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_9is_set)) {
|
|
4739
4740
|
__Pyx_INCREF(__pyx_t_1);
|
|
@@ -4755,11 +4756,11 @@ static int __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_is_set(struc
|
|
|
4755
4756
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
|
|
4756
4757
|
__pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
4757
4758
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4758
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4759
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4759
4760
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4760
4761
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4761
4762
|
}
|
|
4762
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
4763
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4763
4764
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4764
4765
|
__pyx_r = __pyx_t_6;
|
|
4765
4766
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -4778,18 +4779,18 @@ static int __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_is_set(struc
|
|
|
4778
4779
|
#endif
|
|
4779
4780
|
}
|
|
4780
4781
|
|
|
4781
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4782
|
+
/* "a_sync/primitives/locks/event.pyx":106
|
|
4782
4783
|
* cpdef bint is_set(self):
|
|
4783
4784
|
* """Return True if and only if the internal flag is true."""
|
|
4784
4785
|
* return self._value # <<<<<<<<<<<<<<
|
|
4785
4786
|
*
|
|
4786
4787
|
* cpdef void set(self):
|
|
4787
4788
|
*/
|
|
4788
|
-
__Pyx_TraceLine(
|
|
4789
|
+
__Pyx_TraceLine(106,0,__PYX_ERR(0, 106, __pyx_L1_error))
|
|
4789
4790
|
__pyx_r = __pyx_v_self->_value;
|
|
4790
4791
|
goto __pyx_L0;
|
|
4791
4792
|
|
|
4792
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4793
|
+
/* "a_sync/primitives/locks/event.pyx":104
|
|
4793
4794
|
* )
|
|
4794
4795
|
*
|
|
4795
4796
|
* cpdef bint is_set(self): # <<<<<<<<<<<<<<
|
|
@@ -4864,10 +4865,10 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_8is_s
|
|
|
4864
4865
|
int __pyx_clineno = 0;
|
|
4865
4866
|
__Pyx_TraceFrameInit(__pyx_codeobj__6)
|
|
4866
4867
|
__Pyx_RefNannySetupContext("is_set", 1);
|
|
4867
|
-
__Pyx_TraceCall("is_set (wrapper)", __pyx_f[0],
|
|
4868
|
+
__Pyx_TraceCall("is_set (wrapper)", __pyx_f[0], 104, 0, __PYX_ERR(0, 104, __pyx_L1_error));
|
|
4868
4869
|
__Pyx_XDECREF(__pyx_r);
|
|
4869
|
-
__pyx_t_1 = __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_is_set(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4870
|
-
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4870
|
+
__pyx_t_1 = __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_is_set(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4871
|
+
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4871
4872
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4872
4873
|
__pyx_r = __pyx_t_2;
|
|
4873
4874
|
__pyx_t_2 = 0;
|
|
@@ -4885,7 +4886,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_8is_s
|
|
|
4885
4886
|
return __pyx_r;
|
|
4886
4887
|
}
|
|
4887
4888
|
|
|
4888
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4889
|
+
/* "a_sync/primitives/locks/event.pyx":108
|
|
4889
4890
|
* return self._value
|
|
4890
4891
|
*
|
|
4891
4892
|
* cpdef void set(self): # <<<<<<<<<<<<<<
|
|
@@ -4916,7 +4917,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
4916
4917
|
int __pyx_clineno = 0;
|
|
4917
4918
|
__Pyx_TraceFrameInit(__pyx_codeobj__7)
|
|
4918
4919
|
__Pyx_RefNannySetupContext("set", 1);
|
|
4919
|
-
__Pyx_TraceCall("set", __pyx_f[0],
|
|
4920
|
+
__Pyx_TraceCall("set", __pyx_f[0], 108, 0, __PYX_ERR(0, 108, __pyx_L1_error));
|
|
4920
4921
|
/* Check if called by wrapper */
|
|
4921
4922
|
if (unlikely(__pyx_skip_dispatch)) ;
|
|
4922
4923
|
/* Check if overridden in Python */
|
|
@@ -4926,7 +4927,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
4926
4927
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
4927
4928
|
PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
4928
4929
|
#endif
|
|
4929
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4930
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4930
4931
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4931
4932
|
if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_11set)) {
|
|
4932
4933
|
__Pyx_INCREF(__pyx_t_1);
|
|
@@ -4948,7 +4949,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
4948
4949
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
|
|
4949
4950
|
__pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
4950
4951
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4951
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4952
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4952
4953
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4953
4954
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4954
4955
|
}
|
|
@@ -4969,38 +4970,38 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
4969
4970
|
#endif
|
|
4970
4971
|
}
|
|
4971
4972
|
|
|
4972
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4973
|
+
/* "a_sync/primitives/locks/event.pyx":115
|
|
4973
4974
|
* cdef object fut
|
|
4974
4975
|
*
|
|
4975
4976
|
* if not self._value: # <<<<<<<<<<<<<<
|
|
4976
4977
|
* self._value = True
|
|
4977
4978
|
*
|
|
4978
4979
|
*/
|
|
4979
|
-
__Pyx_TraceLine(
|
|
4980
|
+
__Pyx_TraceLine(115,0,__PYX_ERR(0, 115, __pyx_L1_error))
|
|
4980
4981
|
__pyx_t_6 = (!__pyx_v_self->_value);
|
|
4981
4982
|
if (__pyx_t_6) {
|
|
4982
4983
|
|
|
4983
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4984
|
+
/* "a_sync/primitives/locks/event.pyx":116
|
|
4984
4985
|
*
|
|
4985
4986
|
* if not self._value:
|
|
4986
4987
|
* self._value = True # <<<<<<<<<<<<<<
|
|
4987
4988
|
*
|
|
4988
4989
|
* for fut in self._waiters:
|
|
4989
4990
|
*/
|
|
4990
|
-
__Pyx_TraceLine(
|
|
4991
|
+
__Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error))
|
|
4991
4992
|
__pyx_v_self->_value = 1;
|
|
4992
4993
|
|
|
4993
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
4994
|
+
/* "a_sync/primitives/locks/event.pyx":118
|
|
4994
4995
|
* self._value = True
|
|
4995
4996
|
*
|
|
4996
4997
|
* for fut in self._waiters: # <<<<<<<<<<<<<<
|
|
4997
4998
|
* if _is_not_done(fut):
|
|
4998
4999
|
* fut.set_result(True)
|
|
4999
5000
|
*/
|
|
5000
|
-
__Pyx_TraceLine(
|
|
5001
|
+
__Pyx_TraceLine(118,0,__PYX_ERR(0, 118, __pyx_L1_error))
|
|
5001
5002
|
if (unlikely(__pyx_v_self->_waiters == Py_None)) {
|
|
5002
5003
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
|
|
5003
|
-
__PYX_ERR(0,
|
|
5004
|
+
__PYX_ERR(0, 118, __pyx_L1_error)
|
|
5004
5005
|
}
|
|
5005
5006
|
__pyx_t_1 = __pyx_v_self->_waiters; __Pyx_INCREF(__pyx_t_1);
|
|
5006
5007
|
__pyx_t_7 = 0;
|
|
@@ -5008,39 +5009,39 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
5008
5009
|
{
|
|
5009
5010
|
Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
|
|
5010
5011
|
#if !CYTHON_ASSUME_SAFE_MACROS
|
|
5011
|
-
if (unlikely((__pyx_temp < 0))) __PYX_ERR(0,
|
|
5012
|
+
if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 118, __pyx_L1_error)
|
|
5012
5013
|
#endif
|
|
5013
5014
|
if (__pyx_t_7 >= __pyx_temp) break;
|
|
5014
5015
|
}
|
|
5015
5016
|
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
|
|
5016
|
-
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0,
|
|
5017
|
+
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 118, __pyx_L1_error)
|
|
5017
5018
|
#else
|
|
5018
|
-
__pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5019
|
+
__pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
|
|
5019
5020
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5020
5021
|
#endif
|
|
5021
5022
|
__Pyx_XDECREF_SET(__pyx_v_fut, __pyx_t_2);
|
|
5022
5023
|
__pyx_t_2 = 0;
|
|
5023
5024
|
|
|
5024
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5025
|
+
/* "a_sync/primitives/locks/event.pyx":119
|
|
5025
5026
|
*
|
|
5026
5027
|
* for fut in self._waiters:
|
|
5027
5028
|
* if _is_not_done(fut): # <<<<<<<<<<<<<<
|
|
5028
5029
|
* fut.set_result(True)
|
|
5029
5030
|
*
|
|
5030
5031
|
*/
|
|
5031
|
-
__Pyx_TraceLine(
|
|
5032
|
-
__pyx_t_6 = __pyx_f_6a_sync_10primitives_5locks_5event__is_not_done(__pyx_v_fut); if (unlikely(__pyx_t_6 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
5032
|
+
__Pyx_TraceLine(119,0,__PYX_ERR(0, 119, __pyx_L1_error))
|
|
5033
|
+
__pyx_t_6 = __pyx_f_6a_sync_10primitives_5locks_5event__is_not_done(__pyx_v_fut); if (unlikely(__pyx_t_6 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(0, 119, __pyx_L1_error)
|
|
5033
5034
|
if (__pyx_t_6) {
|
|
5034
5035
|
|
|
5035
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5036
|
+
/* "a_sync/primitives/locks/event.pyx":120
|
|
5036
5037
|
* for fut in self._waiters:
|
|
5037
5038
|
* if _is_not_done(fut):
|
|
5038
5039
|
* fut.set_result(True) # <<<<<<<<<<<<<<
|
|
5039
5040
|
*
|
|
5040
5041
|
* cpdef void clear(self):
|
|
5041
5042
|
*/
|
|
5042
|
-
__Pyx_TraceLine(
|
|
5043
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_set_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
5043
|
+
__Pyx_TraceLine(120,0,__PYX_ERR(0, 120, __pyx_L1_error))
|
|
5044
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_set_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
5044
5045
|
__Pyx_GOTREF(__pyx_t_3);
|
|
5045
5046
|
__pyx_t_4 = NULL;
|
|
5046
5047
|
__pyx_t_5 = 0;
|
|
@@ -5060,13 +5061,13 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
5060
5061
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, Py_True};
|
|
5061
5062
|
__pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
|
|
5062
5063
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5063
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5064
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
5064
5065
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5065
5066
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5066
5067
|
}
|
|
5067
5068
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5068
5069
|
|
|
5069
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5070
|
+
/* "a_sync/primitives/locks/event.pyx":119
|
|
5070
5071
|
*
|
|
5071
5072
|
* for fut in self._waiters:
|
|
5072
5073
|
* if _is_not_done(fut): # <<<<<<<<<<<<<<
|
|
@@ -5075,18 +5076,18 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
5075
5076
|
*/
|
|
5076
5077
|
}
|
|
5077
5078
|
|
|
5078
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5079
|
+
/* "a_sync/primitives/locks/event.pyx":118
|
|
5079
5080
|
* self._value = True
|
|
5080
5081
|
*
|
|
5081
5082
|
* for fut in self._waiters: # <<<<<<<<<<<<<<
|
|
5082
5083
|
* if _is_not_done(fut):
|
|
5083
5084
|
* fut.set_result(True)
|
|
5084
5085
|
*/
|
|
5085
|
-
__Pyx_TraceLine(
|
|
5086
|
+
__Pyx_TraceLine(118,0,__PYX_ERR(0, 118, __pyx_L1_error))
|
|
5086
5087
|
}
|
|
5087
5088
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5088
5089
|
|
|
5089
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5090
|
+
/* "a_sync/primitives/locks/event.pyx":115
|
|
5090
5091
|
* cdef object fut
|
|
5091
5092
|
*
|
|
5092
5093
|
* if not self._value: # <<<<<<<<<<<<<<
|
|
@@ -5095,7 +5096,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(struct
|
|
|
5095
5096
|
*/
|
|
5096
5097
|
}
|
|
5097
5098
|
|
|
5098
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5099
|
+
/* "a_sync/primitives/locks/event.pyx":108
|
|
5099
5100
|
* return self._value
|
|
5100
5101
|
*
|
|
5101
5102
|
* cpdef void set(self): # <<<<<<<<<<<<<<
|
|
@@ -5169,10 +5170,10 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_10set
|
|
|
5169
5170
|
int __pyx_clineno = 0;
|
|
5170
5171
|
__Pyx_TraceFrameInit(__pyx_codeobj__7)
|
|
5171
5172
|
__Pyx_RefNannySetupContext("set", 1);
|
|
5172
|
-
__Pyx_TraceCall("set (wrapper)", __pyx_f[0],
|
|
5173
|
+
__Pyx_TraceCall("set (wrapper)", __pyx_f[0], 108, 0, __PYX_ERR(0, 108, __pyx_L1_error));
|
|
5173
5174
|
__Pyx_XDECREF(__pyx_r);
|
|
5174
|
-
__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
5175
|
-
__pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5175
|
+
__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_set(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
5176
|
+
__pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
5176
5177
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5177
5178
|
__pyx_r = __pyx_t_1;
|
|
5178
5179
|
__pyx_t_1 = 0;
|
|
@@ -5190,7 +5191,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_10set
|
|
|
5190
5191
|
return __pyx_r;
|
|
5191
5192
|
}
|
|
5192
5193
|
|
|
5193
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5194
|
+
/* "a_sync/primitives/locks/event.pyx":122
|
|
5194
5195
|
* fut.set_result(True)
|
|
5195
5196
|
*
|
|
5196
5197
|
* cpdef void clear(self): # <<<<<<<<<<<<<<
|
|
@@ -5218,7 +5219,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_clear(struc
|
|
|
5218
5219
|
int __pyx_clineno = 0;
|
|
5219
5220
|
__Pyx_TraceFrameInit(__pyx_codeobj__8)
|
|
5220
5221
|
__Pyx_RefNannySetupContext("clear", 1);
|
|
5221
|
-
__Pyx_TraceCall("clear", __pyx_f[0],
|
|
5222
|
+
__Pyx_TraceCall("clear", __pyx_f[0], 122, 0, __PYX_ERR(0, 122, __pyx_L1_error));
|
|
5222
5223
|
/* Check if called by wrapper */
|
|
5223
5224
|
if (unlikely(__pyx_skip_dispatch)) ;
|
|
5224
5225
|
/* Check if overridden in Python */
|
|
@@ -5228,7 +5229,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_clear(struc
|
|
|
5228
5229
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
5229
5230
|
PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
5230
5231
|
#endif
|
|
5231
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5232
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
5232
5233
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5233
5234
|
if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_13clear)) {
|
|
5234
5235
|
__Pyx_INCREF(__pyx_t_1);
|
|
@@ -5250,7 +5251,7 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_clear(struc
|
|
|
5250
5251
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
|
|
5251
5252
|
__pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
5252
5253
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5253
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5254
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
5254
5255
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5255
5256
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5256
5257
|
}
|
|
@@ -5271,17 +5272,17 @@ static void __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_clear(struc
|
|
|
5271
5272
|
#endif
|
|
5272
5273
|
}
|
|
5273
5274
|
|
|
5274
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5275
|
+
/* "a_sync/primitives/locks/event.pyx":126
|
|
5275
5276
|
* wait() will block until set() is called to set the internal flag
|
|
5276
5277
|
* to true again."""
|
|
5277
5278
|
* self._value = False # <<<<<<<<<<<<<<
|
|
5278
5279
|
*
|
|
5279
5280
|
* cpdef object wait(self):
|
|
5280
5281
|
*/
|
|
5281
|
-
__Pyx_TraceLine(
|
|
5282
|
+
__Pyx_TraceLine(126,0,__PYX_ERR(0, 126, __pyx_L1_error))
|
|
5282
5283
|
__pyx_v_self->_value = 0;
|
|
5283
5284
|
|
|
5284
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5285
|
+
/* "a_sync/primitives/locks/event.pyx":122
|
|
5285
5286
|
* fut.set_result(True)
|
|
5286
5287
|
*
|
|
5287
5288
|
* cpdef void clear(self): # <<<<<<<<<<<<<<
|
|
@@ -5354,10 +5355,10 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_12cle
|
|
|
5354
5355
|
int __pyx_clineno = 0;
|
|
5355
5356
|
__Pyx_TraceFrameInit(__pyx_codeobj__8)
|
|
5356
5357
|
__Pyx_RefNannySetupContext("clear", 1);
|
|
5357
|
-
__Pyx_TraceCall("clear (wrapper)", __pyx_f[0],
|
|
5358
|
+
__Pyx_TraceCall("clear (wrapper)", __pyx_f[0], 122, 0, __PYX_ERR(0, 122, __pyx_L1_error));
|
|
5358
5359
|
__Pyx_XDECREF(__pyx_r);
|
|
5359
|
-
__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_clear(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
5360
|
-
__pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5360
|
+
__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_clear(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
5361
|
+
__pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
5361
5362
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5362
5363
|
__pyx_r = __pyx_t_1;
|
|
5363
5364
|
__pyx_t_1 = 0;
|
|
@@ -5375,7 +5376,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_12cle
|
|
|
5375
5376
|
return __pyx_r;
|
|
5376
5377
|
}
|
|
5377
5378
|
|
|
5378
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5379
|
+
/* "a_sync/primitives/locks/event.pyx":128
|
|
5379
5380
|
* self._value = False
|
|
5380
5381
|
*
|
|
5381
5382
|
* cpdef object wait(self): # <<<<<<<<<<<<<<
|
|
@@ -5404,7 +5405,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait(s
|
|
|
5404
5405
|
int __pyx_clineno = 0;
|
|
5405
5406
|
__Pyx_TraceFrameInit(__pyx_codeobj__9)
|
|
5406
5407
|
__Pyx_RefNannySetupContext("wait", 1);
|
|
5407
|
-
__Pyx_TraceCall("wait", __pyx_f[0],
|
|
5408
|
+
__Pyx_TraceCall("wait", __pyx_f[0], 128, 0, __PYX_ERR(0, 128, __pyx_L1_error));
|
|
5408
5409
|
/* Check if called by wrapper */
|
|
5409
5410
|
if (unlikely(__pyx_skip_dispatch)) ;
|
|
5410
5411
|
/* Check if overridden in Python */
|
|
@@ -5414,7 +5415,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait(s
|
|
|
5414
5415
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
5415
5416
|
PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
5416
5417
|
#endif
|
|
5417
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_wait); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5418
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_wait); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
5418
5419
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5419
5420
|
if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_6a_sync_10primitives_5locks_5event_11CythonEvent_15wait)) {
|
|
5420
5421
|
__Pyx_XDECREF(__pyx_r);
|
|
@@ -5437,7 +5438,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait(s
|
|
|
5437
5438
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
|
|
5438
5439
|
__pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
5439
5440
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5440
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5441
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
5441
5442
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5442
5443
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5443
5444
|
}
|
|
@@ -5459,22 +5460,22 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait(s
|
|
|
5459
5460
|
#endif
|
|
5460
5461
|
}
|
|
5461
5462
|
|
|
5462
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5463
|
+
/* "a_sync/primitives/locks/event.pyx":138
|
|
5463
5464
|
* True when the event is set.
|
|
5464
5465
|
* """
|
|
5465
5466
|
* return self.c_wait() # <<<<<<<<<<<<<<
|
|
5466
5467
|
*
|
|
5467
5468
|
* cdef object c_wait(self):
|
|
5468
5469
|
*/
|
|
5469
|
-
__Pyx_TraceLine(
|
|
5470
|
+
__Pyx_TraceLine(138,0,__PYX_ERR(0, 138, __pyx_L1_error))
|
|
5470
5471
|
__Pyx_XDECREF(__pyx_r);
|
|
5471
|
-
__pyx_t_1 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->c_wait(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5472
|
+
__pyx_t_1 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->c_wait(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error)
|
|
5472
5473
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5473
5474
|
__pyx_r = __pyx_t_1;
|
|
5474
5475
|
__pyx_t_1 = 0;
|
|
5475
5476
|
goto __pyx_L0;
|
|
5476
5477
|
|
|
5477
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5478
|
+
/* "a_sync/primitives/locks/event.pyx":128
|
|
5478
5479
|
* self._value = False
|
|
5479
5480
|
*
|
|
5480
5481
|
* cpdef object wait(self): # <<<<<<<<<<<<<<
|
|
@@ -5549,9 +5550,9 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_14wai
|
|
|
5549
5550
|
int __pyx_clineno = 0;
|
|
5550
5551
|
__Pyx_TraceFrameInit(__pyx_codeobj__9)
|
|
5551
5552
|
__Pyx_RefNannySetupContext("wait", 1);
|
|
5552
|
-
__Pyx_TraceCall("wait (wrapper)", __pyx_f[0],
|
|
5553
|
+
__Pyx_TraceCall("wait (wrapper)", __pyx_f[0], 128, 0, __PYX_ERR(0, 128, __pyx_L1_error));
|
|
5553
5554
|
__Pyx_XDECREF(__pyx_r);
|
|
5554
|
-
__pyx_t_1 = __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5555
|
+
__pyx_t_1 = __pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
5555
5556
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5556
5557
|
__pyx_r = __pyx_t_1;
|
|
5557
5558
|
__pyx_t_1 = 0;
|
|
@@ -5569,7 +5570,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_14wai
|
|
|
5569
5570
|
return __pyx_r;
|
|
5570
5571
|
}
|
|
5571
5572
|
|
|
5572
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5573
|
+
/* "a_sync/primitives/locks/event.pyx":140
|
|
5573
5574
|
* return self.c_wait()
|
|
5574
5575
|
*
|
|
5575
5576
|
* cdef object c_wait(self): # <<<<<<<<<<<<<<
|
|
@@ -5591,28 +5592,28 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5591
5592
|
const char *__pyx_filename = NULL;
|
|
5592
5593
|
int __pyx_clineno = 0;
|
|
5593
5594
|
__Pyx_RefNannySetupContext("c_wait", 1);
|
|
5594
|
-
__Pyx_TraceCall("c_wait", __pyx_f[0],
|
|
5595
|
+
__Pyx_TraceCall("c_wait", __pyx_f[0], 140, 0, __PYX_ERR(0, 140, __pyx_L1_error));
|
|
5595
5596
|
|
|
5596
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5597
|
+
/* "a_sync/primitives/locks/event.pyx":141
|
|
5597
5598
|
*
|
|
5598
5599
|
* cdef object c_wait(self):
|
|
5599
5600
|
* if self._value: # <<<<<<<<<<<<<<
|
|
5600
5601
|
* return _return_true()
|
|
5601
5602
|
*
|
|
5602
5603
|
*/
|
|
5603
|
-
__Pyx_TraceLine(
|
|
5604
|
+
__Pyx_TraceLine(141,0,__PYX_ERR(0, 141, __pyx_L1_error))
|
|
5604
5605
|
if (__pyx_v_self->_value) {
|
|
5605
5606
|
|
|
5606
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5607
|
+
/* "a_sync/primitives/locks/event.pyx":142
|
|
5607
5608
|
* cdef object c_wait(self):
|
|
5608
5609
|
* if self._value:
|
|
5609
5610
|
* return _return_true() # <<<<<<<<<<<<<<
|
|
5610
5611
|
*
|
|
5611
5612
|
* self._c_ensure_debug_daemon((),{})
|
|
5612
5613
|
*/
|
|
5613
|
-
__Pyx_TraceLine(
|
|
5614
|
+
__Pyx_TraceLine(142,0,__PYX_ERR(0, 142, __pyx_L1_error))
|
|
5614
5615
|
__Pyx_XDECREF(__pyx_r);
|
|
5615
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_return_true); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5616
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_return_true); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error)
|
|
5616
5617
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5617
5618
|
__pyx_t_3 = NULL;
|
|
5618
5619
|
__pyx_t_4 = 0;
|
|
@@ -5632,7 +5633,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5632
5633
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
|
|
5633
5634
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
|
|
5634
5635
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5635
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5636
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error)
|
|
5636
5637
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5637
5638
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5638
5639
|
}
|
|
@@ -5640,7 +5641,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5640
5641
|
__pyx_t_1 = 0;
|
|
5641
5642
|
goto __pyx_L0;
|
|
5642
5643
|
|
|
5643
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5644
|
+
/* "a_sync/primitives/locks/event.pyx":141
|
|
5644
5645
|
*
|
|
5645
5646
|
* cdef object c_wait(self):
|
|
5646
5647
|
* if self._value: # <<<<<<<<<<<<<<
|
|
@@ -5649,66 +5650,66 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5649
5650
|
*/
|
|
5650
5651
|
}
|
|
5651
5652
|
|
|
5652
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5653
|
+
/* "a_sync/primitives/locks/event.pyx":144
|
|
5653
5654
|
* return _return_true()
|
|
5654
5655
|
*
|
|
5655
5656
|
* self._c_ensure_debug_daemon((),{}) # <<<<<<<<<<<<<<
|
|
5656
5657
|
*
|
|
5657
5658
|
* cdef object fut = Future(loop=self._c_get_loop())
|
|
5658
5659
|
*/
|
|
5659
|
-
__Pyx_TraceLine(
|
|
5660
|
-
__pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5660
|
+
__Pyx_TraceLine(144,0,__PYX_ERR(0, 144, __pyx_L1_error))
|
|
5661
|
+
__pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error)
|
|
5661
5662
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5662
|
-
((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base._c_ensure_debug_daemon(((struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin *)__pyx_v_self), __pyx_empty_tuple, ((PyObject*)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
5663
|
+
((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base._c_ensure_debug_daemon(((struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin *)__pyx_v_self), __pyx_empty_tuple, ((PyObject*)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 144, __pyx_L1_error)
|
|
5663
5664
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5664
5665
|
|
|
5665
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5666
|
+
/* "a_sync/primitives/locks/event.pyx":146
|
|
5666
5667
|
* self._c_ensure_debug_daemon((),{})
|
|
5667
5668
|
*
|
|
5668
5669
|
* cdef object fut = Future(loop=self._c_get_loop()) # <<<<<<<<<<<<<<
|
|
5669
5670
|
* self._waiters.append(fut)
|
|
5670
5671
|
* return self.__wait(fut)
|
|
5671
5672
|
*/
|
|
5672
|
-
__Pyx_TraceLine(
|
|
5673
|
-
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Future); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5673
|
+
__Pyx_TraceLine(146,0,__PYX_ERR(0, 146, __pyx_L1_error))
|
|
5674
|
+
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Future); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error)
|
|
5674
5675
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5675
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5676
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
|
|
5676
5677
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5677
|
-
__pyx_t_3 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._c_get_loop(((struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
5678
|
+
__pyx_t_3 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._c_get_loop(((struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error)
|
|
5678
5679
|
__Pyx_GOTREF(__pyx_t_3);
|
|
5679
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
5680
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_t_3) < 0) __PYX_ERR(0, 146, __pyx_L1_error)
|
|
5680
5681
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5681
|
-
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
5682
|
+
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error)
|
|
5682
5683
|
__Pyx_GOTREF(__pyx_t_3);
|
|
5683
5684
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5684
5685
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5685
5686
|
__pyx_v_fut = __pyx_t_3;
|
|
5686
5687
|
__pyx_t_3 = 0;
|
|
5687
5688
|
|
|
5688
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5689
|
+
/* "a_sync/primitives/locks/event.pyx":147
|
|
5689
5690
|
*
|
|
5690
5691
|
* cdef object fut = Future(loop=self._c_get_loop())
|
|
5691
5692
|
* self._waiters.append(fut) # <<<<<<<<<<<<<<
|
|
5692
5693
|
* return self.__wait(fut)
|
|
5693
5694
|
*
|
|
5694
5695
|
*/
|
|
5695
|
-
__Pyx_TraceLine(
|
|
5696
|
+
__Pyx_TraceLine(147,0,__PYX_ERR(0, 147, __pyx_L1_error))
|
|
5696
5697
|
if (unlikely(__pyx_v_self->_waiters == Py_None)) {
|
|
5697
5698
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
|
|
5698
|
-
__PYX_ERR(0,
|
|
5699
|
+
__PYX_ERR(0, 147, __pyx_L1_error)
|
|
5699
5700
|
}
|
|
5700
|
-
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->_waiters, __pyx_v_fut); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0,
|
|
5701
|
+
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->_waiters, __pyx_v_fut); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 147, __pyx_L1_error)
|
|
5701
5702
|
|
|
5702
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5703
|
+
/* "a_sync/primitives/locks/event.pyx":148
|
|
5703
5704
|
* cdef object fut = Future(loop=self._c_get_loop())
|
|
5704
5705
|
* self._waiters.append(fut)
|
|
5705
5706
|
* return self.__wait(fut) # <<<<<<<<<<<<<<
|
|
5706
5707
|
*
|
|
5707
5708
|
* @property
|
|
5708
5709
|
*/
|
|
5709
|
-
__Pyx_TraceLine(
|
|
5710
|
+
__Pyx_TraceLine(148,0,__PYX_ERR(0, 148, __pyx_L1_error))
|
|
5710
5711
|
__Pyx_XDECREF(__pyx_r);
|
|
5711
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_CythonEvent__wait); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5712
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_CythonEvent__wait); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
|
|
5712
5713
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5713
5714
|
__pyx_t_1 = NULL;
|
|
5714
5715
|
__pyx_t_4 = 0;
|
|
@@ -5728,7 +5729,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5728
5729
|
PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_fut};
|
|
5729
5730
|
__pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
5730
5731
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5731
|
-
if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
5732
|
+
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 148, __pyx_L1_error)
|
|
5732
5733
|
__Pyx_GOTREF(__pyx_t_3);
|
|
5733
5734
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5734
5735
|
}
|
|
@@ -5736,7 +5737,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5736
5737
|
__pyx_t_3 = 0;
|
|
5737
5738
|
goto __pyx_L0;
|
|
5738
5739
|
|
|
5739
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5740
|
+
/* "a_sync/primitives/locks/event.pyx":140
|
|
5740
5741
|
* return self.c_wait()
|
|
5741
5742
|
*
|
|
5742
5743
|
* cdef object c_wait(self): # <<<<<<<<<<<<<<
|
|
@@ -5759,7 +5760,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait
|
|
|
5759
5760
|
return __pyx_r;
|
|
5760
5761
|
}
|
|
5761
5762
|
|
|
5762
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5763
|
+
/* "a_sync/primitives/locks/event.pyx":150
|
|
5763
5764
|
* return self.__wait(fut)
|
|
5764
5765
|
*
|
|
5765
5766
|
* @property # <<<<<<<<<<<<<<
|
|
@@ -5793,27 +5794,27 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_5_nam
|
|
|
5793
5794
|
const char *__pyx_filename = NULL;
|
|
5794
5795
|
int __pyx_clineno = 0;
|
|
5795
5796
|
__Pyx_RefNannySetupContext("__get__", 1);
|
|
5796
|
-
__Pyx_TraceCall("__get__", __pyx_f[0],
|
|
5797
|
+
__Pyx_TraceCall("__get__", __pyx_f[0], 150, 0, __PYX_ERR(0, 150, __pyx_L1_error));
|
|
5797
5798
|
|
|
5798
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5799
|
+
/* "a_sync/primitives/locks/event.pyx":152
|
|
5799
5800
|
* @property
|
|
5800
5801
|
* def _name(self) -> str:
|
|
5801
5802
|
* return self.__name.decode("utf-8") # <<<<<<<<<<<<<<
|
|
5802
5803
|
*
|
|
5803
5804
|
* async def __wait(self, fut: Future) -> Literal[True]:
|
|
5804
5805
|
*/
|
|
5805
|
-
__Pyx_TraceLine(
|
|
5806
|
+
__Pyx_TraceLine(152,0,__PYX_ERR(0, 152, __pyx_L1_error))
|
|
5806
5807
|
__Pyx_XDECREF(__pyx_r);
|
|
5807
5808
|
__pyx_t_1 = __pyx_v_self->_CythonEvent__name;
|
|
5808
|
-
__pyx_t_2 = __Pyx_ssize_strlen(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0,
|
|
5809
|
-
__pyx_t_3 = __Pyx_decode_c_string(__pyx_t_1, 0, __pyx_t_2, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
5809
|
+
__pyx_t_2 = __Pyx_ssize_strlen(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
5810
|
+
__pyx_t_3 = __Pyx_decode_c_string(__pyx_t_1, 0, __pyx_t_2, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
5810
5811
|
__Pyx_GOTREF(__pyx_t_3);
|
|
5811
5812
|
__Pyx_INCREF(__pyx_t_3);
|
|
5812
5813
|
__pyx_r = __pyx_t_3;
|
|
5813
5814
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5814
5815
|
goto __pyx_L0;
|
|
5815
5816
|
|
|
5816
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5817
|
+
/* "a_sync/primitives/locks/event.pyx":150
|
|
5817
5818
|
* return self.__wait(fut)
|
|
5818
5819
|
*
|
|
5819
5820
|
* @property # <<<<<<<<<<<<<<
|
|
@@ -5834,7 +5835,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_5_nam
|
|
|
5834
5835
|
}
|
|
5835
5836
|
static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
5836
5837
|
|
|
5837
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
5838
|
+
/* "a_sync/primitives/locks/event.pyx":154
|
|
5838
5839
|
* return self.__name.decode("utf-8")
|
|
5839
5840
|
*
|
|
5840
5841
|
* async def __wait(self, fut: Future) -> Literal[True]: # <<<<<<<<<<<<<<
|
|
@@ -5896,12 +5897,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
5896
5897
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
5897
5898
|
kw_args--;
|
|
5898
5899
|
}
|
|
5899
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
5900
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 154, __pyx_L3_error)
|
|
5900
5901
|
else goto __pyx_L5_argtuple_error;
|
|
5901
5902
|
}
|
|
5902
5903
|
if (unlikely(kw_args > 0)) {
|
|
5903
5904
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
5904
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_CythonEvent__wait") < 0)) __PYX_ERR(0,
|
|
5905
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_CythonEvent__wait") < 0)) __PYX_ERR(0, 154, __pyx_L3_error)
|
|
5905
5906
|
}
|
|
5906
5907
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
5907
5908
|
goto __pyx_L5_argtuple_error;
|
|
@@ -5912,7 +5913,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
5912
5913
|
}
|
|
5913
5914
|
goto __pyx_L6_skip;
|
|
5914
5915
|
__pyx_L5_argtuple_error:;
|
|
5915
|
-
__Pyx_RaiseArgtupleInvalid("_CythonEvent__wait", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
5916
|
+
__Pyx_RaiseArgtupleInvalid("_CythonEvent__wait", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 154, __pyx_L3_error)
|
|
5916
5917
|
__pyx_L6_skip:;
|
|
5917
5918
|
goto __pyx_L4_argument_unpacking_done;
|
|
5918
5919
|
__pyx_L3_error:;
|
|
@@ -5951,7 +5952,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_16__w
|
|
|
5951
5952
|
if (unlikely(!__pyx_cur_scope)) {
|
|
5952
5953
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait *)Py_None);
|
|
5953
5954
|
__Pyx_INCREF(Py_None);
|
|
5954
|
-
__PYX_ERR(0,
|
|
5955
|
+
__PYX_ERR(0, 154, __pyx_L1_error)
|
|
5955
5956
|
} else {
|
|
5956
5957
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
5957
5958
|
}
|
|
@@ -5962,7 +5963,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_16__w
|
|
|
5962
5963
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_fut);
|
|
5963
5964
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fut);
|
|
5964
5965
|
{
|
|
5965
|
-
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18generator1, __pyx_codeobj__10, (PyObject *) __pyx_cur_scope, __pyx_n_s_wait_2, __pyx_n_s_CythonEvent___wait, __pyx_n_s_a_sync_primitives_locks_event); if (unlikely(!gen)) __PYX_ERR(0,
|
|
5966
|
+
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18generator1, __pyx_codeobj__10, (PyObject *) __pyx_cur_scope, __pyx_n_s_wait_2, __pyx_n_s_CythonEvent___wait, __pyx_n_s_a_sync_primitives_locks_event); if (unlikely(!gen)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
5966
5967
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
5967
5968
|
__Pyx_RefNannyFinishContext();
|
|
5968
5969
|
return (PyObject *) gen;
|
|
@@ -6003,7 +6004,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6003
6004
|
__Pyx_RefNannyDeclarations
|
|
6004
6005
|
__Pyx_RefNannySetupContext("__wait", 0);
|
|
6005
6006
|
__Pyx_TraceFrameInit(__pyx_codeobj__10)
|
|
6006
|
-
__Pyx_TraceCall("__wait", __pyx_f[0],
|
|
6007
|
+
__Pyx_TraceCall("__wait", __pyx_f[0], 154, 0, __PYX_ERR(0, 154, __pyx_L1_error));
|
|
6007
6008
|
switch (__pyx_generator->resume_label) {
|
|
6008
6009
|
case 0: goto __pyx_L3_first_run;
|
|
6009
6010
|
case 1: goto __pyx_L7_resume_from_await;
|
|
@@ -6013,26 +6014,26 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6013
6014
|
return NULL;
|
|
6014
6015
|
}
|
|
6015
6016
|
__pyx_L3_first_run:;
|
|
6016
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6017
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
6017
6018
|
|
|
6018
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6019
|
+
/* "a_sync/primitives/locks/event.pyx":155
|
|
6019
6020
|
*
|
|
6020
6021
|
* async def __wait(self, fut: Future) -> Literal[True]:
|
|
6021
6022
|
* try: # <<<<<<<<<<<<<<
|
|
6022
6023
|
* await fut
|
|
6023
6024
|
* return True
|
|
6024
6025
|
*/
|
|
6025
|
-
__Pyx_TraceLine(
|
|
6026
|
+
__Pyx_TraceLine(155,0,__PYX_ERR(0, 155, __pyx_L1_error))
|
|
6026
6027
|
/*try:*/ {
|
|
6027
6028
|
|
|
6028
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6029
|
+
/* "a_sync/primitives/locks/event.pyx":156
|
|
6029
6030
|
* async def __wait(self, fut: Future) -> Literal[True]:
|
|
6030
6031
|
* try:
|
|
6031
6032
|
* await fut # <<<<<<<<<<<<<<
|
|
6032
6033
|
* return True
|
|
6033
6034
|
* finally:
|
|
6034
6035
|
*/
|
|
6035
|
-
__Pyx_TraceLine(
|
|
6036
|
+
__Pyx_TraceLine(156,0,__PYX_ERR(0, 156, __pyx_L5_error))
|
|
6036
6037
|
__pyx_r = __Pyx_Coroutine_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_fut);
|
|
6037
6038
|
__Pyx_XGOTREF(__pyx_r);
|
|
6038
6039
|
if (likely(__pyx_r)) {
|
|
@@ -6044,36 +6045,36 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6044
6045
|
__pyx_generator->resume_label = 1;
|
|
6045
6046
|
return __pyx_r;
|
|
6046
6047
|
__pyx_L7_resume_from_await:;
|
|
6047
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6048
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 156, __pyx_L5_error)
|
|
6048
6049
|
} else {
|
|
6049
6050
|
PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType();
|
|
6050
6051
|
if (exc_type) {
|
|
6051
6052
|
if (likely(exc_type == PyExc_StopIteration || (exc_type != PyExc_GeneratorExit && __Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))) PyErr_Clear();
|
|
6052
|
-
else __PYX_ERR(0,
|
|
6053
|
+
else __PYX_ERR(0, 156, __pyx_L5_error)
|
|
6053
6054
|
}
|
|
6054
6055
|
}
|
|
6055
6056
|
|
|
6056
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6057
|
+
/* "a_sync/primitives/locks/event.pyx":157
|
|
6057
6058
|
* try:
|
|
6058
6059
|
* await fut
|
|
6059
6060
|
* return True # <<<<<<<<<<<<<<
|
|
6060
6061
|
* finally:
|
|
6061
6062
|
* self._waiters.remove(fut)
|
|
6062
6063
|
*/
|
|
6063
|
-
__Pyx_TraceLine(
|
|
6064
|
+
__Pyx_TraceLine(157,0,__PYX_ERR(0, 157, __pyx_L5_error))
|
|
6064
6065
|
__Pyx_XDECREF(__pyx_r);
|
|
6065
6066
|
__pyx_r = NULL; __Pyx_ReturnWithStopIteration(Py_True);
|
|
6066
6067
|
goto __pyx_L4_return;
|
|
6067
6068
|
}
|
|
6068
6069
|
|
|
6069
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6070
|
+
/* "a_sync/primitives/locks/event.pyx":159
|
|
6070
6071
|
* return True
|
|
6071
6072
|
* finally:
|
|
6072
6073
|
* self._waiters.remove(fut) # <<<<<<<<<<<<<<
|
|
6073
6074
|
*
|
|
6074
6075
|
* async def _debug_daemon(self) -> None:
|
|
6075
6076
|
*/
|
|
6076
|
-
__Pyx_TraceLine(
|
|
6077
|
+
__Pyx_TraceLine(159,0,__PYX_ERR(0, 159, __pyx_L5_error))
|
|
6077
6078
|
/*finally:*/ {
|
|
6078
6079
|
__pyx_L5_error:;
|
|
6079
6080
|
/*exception exit:*/{
|
|
@@ -6089,7 +6090,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6089
6090
|
__Pyx_XGOTREF(__pyx_t_9);
|
|
6090
6091
|
__pyx_t_1 = __pyx_lineno; __pyx_t_2 = __pyx_clineno; __pyx_t_3 = __pyx_filename;
|
|
6091
6092
|
{
|
|
6092
|
-
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self->_waiters, __pyx_n_s_remove); if (unlikely(!__pyx_t_11)) __PYX_ERR(0,
|
|
6093
|
+
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self->_waiters, __pyx_n_s_remove); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 159, __pyx_L9_error)
|
|
6093
6094
|
__Pyx_GOTREF(__pyx_t_11);
|
|
6094
6095
|
__pyx_t_12 = NULL;
|
|
6095
6096
|
__pyx_t_13 = 0;
|
|
@@ -6109,7 +6110,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6109
6110
|
PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_cur_scope->__pyx_v_fut};
|
|
6110
6111
|
__pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_11, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
|
|
6111
6112
|
__Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
6112
|
-
if (unlikely(!__pyx_t_10)) __PYX_ERR(0,
|
|
6113
|
+
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 159, __pyx_L9_error)
|
|
6113
6114
|
__Pyx_GOTREF(__pyx_t_10);
|
|
6114
6115
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
6115
6116
|
}
|
|
@@ -6154,7 +6155,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6154
6155
|
__Pyx_XGOTREF(__pyx_t_4);
|
|
6155
6156
|
__pyx_t_14 = __pyx_r;
|
|
6156
6157
|
__pyx_r = 0;
|
|
6157
|
-
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self->_waiters, __pyx_n_s_remove); if (unlikely(!__pyx_t_11)) __PYX_ERR(0,
|
|
6158
|
+
__pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self->_waiters, __pyx_n_s_remove); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 159, __pyx_L1_error)
|
|
6158
6159
|
__Pyx_GOTREF(__pyx_t_11);
|
|
6159
6160
|
__pyx_t_12 = NULL;
|
|
6160
6161
|
__pyx_t_13 = 0;
|
|
@@ -6174,7 +6175,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6174
6175
|
PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_cur_scope->__pyx_v_fut};
|
|
6175
6176
|
__pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_11, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
|
|
6176
6177
|
__Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
6177
|
-
if (unlikely(!__pyx_t_10)) __PYX_ERR(0,
|
|
6178
|
+
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 159, __pyx_L1_error)
|
|
6178
6179
|
__Pyx_GOTREF(__pyx_t_10);
|
|
6179
6180
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
6180
6181
|
}
|
|
@@ -6197,7 +6198,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6197
6198
|
}
|
|
6198
6199
|
CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);
|
|
6199
6200
|
|
|
6200
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6201
|
+
/* "a_sync/primitives/locks/event.pyx":154
|
|
6201
6202
|
* return self.__name.decode("utf-8")
|
|
6202
6203
|
*
|
|
6203
6204
|
* async def __wait(self, fut: Future) -> Literal[True]: # <<<<<<<<<<<<<<
|
|
@@ -6225,7 +6226,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_18gen
|
|
|
6225
6226
|
}
|
|
6226
6227
|
static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
6227
6228
|
|
|
6228
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6229
|
+
/* "a_sync/primitives/locks/event.pyx":161
|
|
6229
6230
|
* self._waiters.remove(fut)
|
|
6230
6231
|
*
|
|
6231
6232
|
* async def _debug_daemon(self) -> None: # <<<<<<<<<<<<<<
|
|
@@ -6287,7 +6288,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_19_de
|
|
|
6287
6288
|
if (unlikely(!__pyx_cur_scope)) {
|
|
6288
6289
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon *)Py_None);
|
|
6289
6290
|
__Pyx_INCREF(Py_None);
|
|
6290
|
-
__PYX_ERR(0,
|
|
6291
|
+
__PYX_ERR(0, 161, __pyx_L1_error)
|
|
6291
6292
|
} else {
|
|
6292
6293
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
6293
6294
|
}
|
|
@@ -6295,7 +6296,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_19_de
|
|
|
6295
6296
|
__Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
|
|
6296
6297
|
__Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
|
|
6297
6298
|
{
|
|
6298
|
-
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21generator2, __pyx_codeobj__11, (PyObject *) __pyx_cur_scope, __pyx_n_s_debug_daemon, __pyx_n_s_CythonEvent__debug_daemon, __pyx_n_s_a_sync_primitives_locks_event); if (unlikely(!gen)) __PYX_ERR(0,
|
|
6299
|
+
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21generator2, __pyx_codeobj__11, (PyObject *) __pyx_cur_scope, __pyx_n_s_debug_daemon, __pyx_n_s_CythonEvent__debug_daemon, __pyx_n_s_a_sync_primitives_locks_event); if (unlikely(!gen)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
6299
6300
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
6300
6301
|
__Pyx_RefNannyFinishContext();
|
|
6301
6302
|
return (PyObject *) gen;
|
|
@@ -6330,7 +6331,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6330
6331
|
__Pyx_RefNannyDeclarations
|
|
6331
6332
|
__Pyx_RefNannySetupContext("_debug_daemon", 0);
|
|
6332
6333
|
__Pyx_TraceFrameInit(__pyx_codeobj__11)
|
|
6333
|
-
__Pyx_TraceCall("_debug_daemon", __pyx_f[0],
|
|
6334
|
+
__Pyx_TraceCall("_debug_daemon", __pyx_f[0], 161, 0, __PYX_ERR(0, 161, __pyx_L1_error));
|
|
6334
6335
|
switch (__pyx_generator->resume_label) {
|
|
6335
6336
|
case 0: goto __pyx_L3_first_run;
|
|
6336
6337
|
case 1: goto __pyx_L9_resume_from_await;
|
|
@@ -6340,17 +6341,17 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6340
6341
|
return NULL;
|
|
6341
6342
|
}
|
|
6342
6343
|
__pyx_L3_first_run:;
|
|
6343
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6344
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
6344
6345
|
|
|
6345
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6346
|
+
/* "a_sync/primitives/locks/event.pyx":168
|
|
6346
6347
|
* """
|
|
6347
6348
|
* cdef time_t start, now
|
|
6348
6349
|
* cdef object weakself = ref(self) # <<<<<<<<<<<<<<
|
|
6349
6350
|
* cdef unsigned int loops = 0
|
|
6350
6351
|
* cdef uint16_t interval = self._debug_daemon_interval
|
|
6351
6352
|
*/
|
|
6352
|
-
__Pyx_TraceLine(
|
|
6353
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ref); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
6353
|
+
__Pyx_TraceLine(168,0,__PYX_ERR(0, 168, __pyx_L1_error))
|
|
6354
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ref); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error)
|
|
6354
6355
|
__Pyx_GOTREF(__pyx_t_2);
|
|
6355
6356
|
__pyx_t_3 = NULL;
|
|
6356
6357
|
__pyx_t_4 = 0;
|
|
@@ -6370,7 +6371,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6370
6371
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, ((PyObject *)__pyx_cur_scope->__pyx_v_self)};
|
|
6371
6372
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
6372
6373
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
6373
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
6374
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 168, __pyx_L1_error)
|
|
6374
6375
|
__Pyx_GOTREF(__pyx_t_1);
|
|
6375
6376
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
6376
6377
|
}
|
|
@@ -6378,45 +6379,45 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6378
6379
|
__pyx_cur_scope->__pyx_v_weakself = __pyx_t_1;
|
|
6379
6380
|
__pyx_t_1 = 0;
|
|
6380
6381
|
|
|
6381
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6382
|
+
/* "a_sync/primitives/locks/event.pyx":169
|
|
6382
6383
|
* cdef time_t start, now
|
|
6383
6384
|
* cdef object weakself = ref(self)
|
|
6384
6385
|
* cdef unsigned int loops = 0 # <<<<<<<<<<<<<<
|
|
6385
6386
|
* cdef uint16_t interval = self._debug_daemon_interval
|
|
6386
6387
|
*
|
|
6387
6388
|
*/
|
|
6388
|
-
__Pyx_TraceLine(
|
|
6389
|
+
__Pyx_TraceLine(169,0,__PYX_ERR(0, 169, __pyx_L1_error))
|
|
6389
6390
|
__pyx_cur_scope->__pyx_v_loops = 0;
|
|
6390
6391
|
|
|
6391
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6392
|
+
/* "a_sync/primitives/locks/event.pyx":170
|
|
6392
6393
|
* cdef object weakself = ref(self)
|
|
6393
6394
|
* cdef unsigned int loops = 0
|
|
6394
6395
|
* cdef uint16_t interval = self._debug_daemon_interval # <<<<<<<<<<<<<<
|
|
6395
6396
|
*
|
|
6396
6397
|
* start = time(NULL)
|
|
6397
6398
|
*/
|
|
6398
|
-
__Pyx_TraceLine(
|
|
6399
|
+
__Pyx_TraceLine(170,0,__PYX_ERR(0, 170, __pyx_L1_error))
|
|
6399
6400
|
__pyx_t_5 = __pyx_cur_scope->__pyx_v_self->_debug_daemon_interval;
|
|
6400
6401
|
__pyx_cur_scope->__pyx_v_interval = __pyx_t_5;
|
|
6401
6402
|
|
|
6402
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6403
|
+
/* "a_sync/primitives/locks/event.pyx":172
|
|
6403
6404
|
* cdef uint16_t interval = self._debug_daemon_interval
|
|
6404
6405
|
*
|
|
6405
6406
|
* start = time(NULL) # <<<<<<<<<<<<<<
|
|
6406
6407
|
* while (self := weakself()) and not self._value:
|
|
6407
6408
|
* if loops:
|
|
6408
6409
|
*/
|
|
6409
|
-
__Pyx_TraceLine(
|
|
6410
|
+
__Pyx_TraceLine(172,0,__PYX_ERR(0, 172, __pyx_L1_error))
|
|
6410
6411
|
__pyx_cur_scope->__pyx_v_start = time(NULL);
|
|
6411
6412
|
|
|
6412
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6413
|
+
/* "a_sync/primitives/locks/event.pyx":173
|
|
6413
6414
|
*
|
|
6414
6415
|
* start = time(NULL)
|
|
6415
6416
|
* while (self := weakself()) and not self._value: # <<<<<<<<<<<<<<
|
|
6416
6417
|
* if loops:
|
|
6417
6418
|
* now = time(NULL)
|
|
6418
6419
|
*/
|
|
6419
|
-
__Pyx_TraceLine(
|
|
6420
|
+
__Pyx_TraceLine(173,0,__PYX_ERR(0, 173, __pyx_L1_error))
|
|
6420
6421
|
while (1) {
|
|
6421
6422
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_weakself);
|
|
6422
6423
|
__pyx_t_2 = __pyx_cur_scope->__pyx_v_weakself; __pyx_t_3 = NULL;
|
|
@@ -6437,16 +6438,16 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6437
6438
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
|
|
6438
6439
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
|
|
6439
6440
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
6440
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
6441
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 173, __pyx_L1_error)
|
|
6441
6442
|
__Pyx_GOTREF(__pyx_t_1);
|
|
6442
6443
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
6443
6444
|
}
|
|
6444
|
-
if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent))))) __PYX_ERR(0,
|
|
6445
|
+
if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent))))) __PYX_ERR(0, 173, __pyx_L1_error)
|
|
6445
6446
|
__Pyx_XGOTREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
|
|
6446
6447
|
__Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_self, ((struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_t_1));
|
|
6447
6448
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
6448
6449
|
__Pyx_INCREF(__pyx_t_1);
|
|
6449
|
-
__pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0,
|
|
6450
|
+
__pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 173, __pyx_L1_error)
|
|
6450
6451
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
6451
6452
|
if (__pyx_t_7) {
|
|
6452
6453
|
} else {
|
|
@@ -6458,60 +6459,60 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6458
6459
|
__pyx_L6_bool_binop_done:;
|
|
6459
6460
|
if (!__pyx_t_6) break;
|
|
6460
6461
|
|
|
6461
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6462
|
+
/* "a_sync/primitives/locks/event.pyx":174
|
|
6462
6463
|
* start = time(NULL)
|
|
6463
6464
|
* while (self := weakself()) and not self._value:
|
|
6464
6465
|
* if loops: # <<<<<<<<<<<<<<
|
|
6465
6466
|
* now = time(NULL)
|
|
6466
6467
|
* self.get_logger().debug(
|
|
6467
6468
|
*/
|
|
6468
|
-
__Pyx_TraceLine(
|
|
6469
|
+
__Pyx_TraceLine(174,0,__PYX_ERR(0, 174, __pyx_L1_error))
|
|
6469
6470
|
__pyx_t_6 = (__pyx_cur_scope->__pyx_v_loops != 0);
|
|
6470
6471
|
if (__pyx_t_6) {
|
|
6471
6472
|
|
|
6472
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6473
|
+
/* "a_sync/primitives/locks/event.pyx":175
|
|
6473
6474
|
* while (self := weakself()) and not self._value:
|
|
6474
6475
|
* if loops:
|
|
6475
6476
|
* now = time(NULL) # <<<<<<<<<<<<<<
|
|
6476
6477
|
* self.get_logger().debug(
|
|
6477
6478
|
* "Waiting for %s for %sm", self, round((now - start) / 60, 2)
|
|
6478
6479
|
*/
|
|
6479
|
-
__Pyx_TraceLine(
|
|
6480
|
+
__Pyx_TraceLine(175,0,__PYX_ERR(0, 175, __pyx_L1_error))
|
|
6480
6481
|
__pyx_cur_scope->__pyx_v_now = time(NULL);
|
|
6481
6482
|
|
|
6482
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6483
|
+
/* "a_sync/primitives/locks/event.pyx":176
|
|
6483
6484
|
* if loops:
|
|
6484
6485
|
* now = time(NULL)
|
|
6485
6486
|
* self.get_logger().debug( # <<<<<<<<<<<<<<
|
|
6486
6487
|
* "Waiting for %s for %sm", self, round((now - start) / 60, 2)
|
|
6487
6488
|
* )
|
|
6488
6489
|
*/
|
|
6489
|
-
__Pyx_TraceLine(
|
|
6490
|
-
__pyx_t_2 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_cur_scope->__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.get_logger(((struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin *)__pyx_cur_scope->__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
6490
|
+
__Pyx_TraceLine(176,0,__PYX_ERR(0, 176, __pyx_L1_error))
|
|
6491
|
+
__pyx_t_2 = ((struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent *)__pyx_cur_scope->__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.get_logger(((struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin *)__pyx_cur_scope->__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error)
|
|
6491
6492
|
__Pyx_GOTREF(__pyx_t_2);
|
|
6492
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_debug); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
6493
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_debug); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error)
|
|
6493
6494
|
__Pyx_GOTREF(__pyx_t_3);
|
|
6494
6495
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
6495
6496
|
|
|
6496
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6497
|
+
/* "a_sync/primitives/locks/event.pyx":177
|
|
6497
6498
|
* now = time(NULL)
|
|
6498
6499
|
* self.get_logger().debug(
|
|
6499
6500
|
* "Waiting for %s for %sm", self, round((now - start) / 60, 2) # <<<<<<<<<<<<<<
|
|
6500
6501
|
* )
|
|
6501
6502
|
* del self # no need to hold a reference here
|
|
6502
6503
|
*/
|
|
6503
|
-
__Pyx_TraceLine(
|
|
6504
|
-
__pyx_t_2 = PyFloat_FromDouble((((double)(__pyx_cur_scope->__pyx_v_now - __pyx_cur_scope->__pyx_v_start)) / 60.0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
6504
|
+
__Pyx_TraceLine(177,0,__PYX_ERR(0, 177, __pyx_L1_error))
|
|
6505
|
+
__pyx_t_2 = PyFloat_FromDouble((((double)(__pyx_cur_scope->__pyx_v_now - __pyx_cur_scope->__pyx_v_start)) / 60.0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
|
|
6505
6506
|
__Pyx_GOTREF(__pyx_t_2);
|
|
6506
|
-
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
6507
|
+
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 177, __pyx_L1_error)
|
|
6507
6508
|
__Pyx_GOTREF(__pyx_t_8);
|
|
6508
6509
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
6509
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2)) __PYX_ERR(0,
|
|
6510
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error);
|
|
6510
6511
|
__Pyx_INCREF(__pyx_int_2);
|
|
6511
6512
|
__Pyx_GIVEREF(__pyx_int_2);
|
|
6512
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_int_2)) __PYX_ERR(0,
|
|
6513
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_int_2)) __PYX_ERR(0, 177, __pyx_L1_error);
|
|
6513
6514
|
__pyx_t_2 = 0;
|
|
6514
|
-
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_round, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
6515
|
+
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_round, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
|
|
6515
6516
|
__Pyx_GOTREF(__pyx_t_2);
|
|
6516
6517
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
6517
6518
|
__pyx_t_8 = NULL;
|
|
@@ -6533,13 +6534,13 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6533
6534
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 3+__pyx_t_4);
|
|
6534
6535
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
6535
6536
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
6536
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
6537
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error)
|
|
6537
6538
|
__Pyx_GOTREF(__pyx_t_1);
|
|
6538
6539
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
6539
6540
|
}
|
|
6540
6541
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
6541
6542
|
|
|
6542
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6543
|
+
/* "a_sync/primitives/locks/event.pyx":174
|
|
6543
6544
|
* start = time(NULL)
|
|
6544
6545
|
* while (self := weakself()) and not self._value:
|
|
6545
6546
|
* if loops: # <<<<<<<<<<<<<<
|
|
@@ -6548,28 +6549,28 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6548
6549
|
*/
|
|
6549
6550
|
}
|
|
6550
6551
|
|
|
6551
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6552
|
+
/* "a_sync/primitives/locks/event.pyx":179
|
|
6552
6553
|
* "Waiting for %s for %sm", self, round((now - start) / 60, 2)
|
|
6553
6554
|
* )
|
|
6554
6555
|
* del self # no need to hold a reference here # <<<<<<<<<<<<<<
|
|
6555
6556
|
* await sleep(interval)
|
|
6556
6557
|
* loops += 1
|
|
6557
6558
|
*/
|
|
6558
|
-
__Pyx_TraceLine(
|
|
6559
|
+
__Pyx_TraceLine(179,0,__PYX_ERR(0, 179, __pyx_L1_error))
|
|
6559
6560
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
|
|
6560
6561
|
__Pyx_DECREF((PyObject *)__pyx_cur_scope->__pyx_v_self); __pyx_cur_scope->__pyx_v_self = 0;
|
|
6561
6562
|
|
|
6562
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6563
|
+
/* "a_sync/primitives/locks/event.pyx":180
|
|
6563
6564
|
* )
|
|
6564
6565
|
* del self # no need to hold a reference here
|
|
6565
6566
|
* await sleep(interval) # <<<<<<<<<<<<<<
|
|
6566
6567
|
* loops += 1
|
|
6567
6568
|
*
|
|
6568
6569
|
*/
|
|
6569
|
-
__Pyx_TraceLine(
|
|
6570
|
-
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_sleep); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
6570
|
+
__Pyx_TraceLine(180,0,__PYX_ERR(0, 180, __pyx_L1_error))
|
|
6571
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_sleep); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 180, __pyx_L1_error)
|
|
6571
6572
|
__Pyx_GOTREF(__pyx_t_3);
|
|
6572
|
-
__pyx_t_2 = __Pyx_PyInt_From_uint16_t(__pyx_cur_scope->__pyx_v_interval); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
6573
|
+
__pyx_t_2 = __Pyx_PyInt_From_uint16_t(__pyx_cur_scope->__pyx_v_interval); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 180, __pyx_L1_error)
|
|
6573
6574
|
__Pyx_GOTREF(__pyx_t_2);
|
|
6574
6575
|
__pyx_t_8 = NULL;
|
|
6575
6576
|
__pyx_t_4 = 0;
|
|
@@ -6590,7 +6591,7 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6590
6591
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
6591
6592
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
6592
6593
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
6593
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
6594
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error)
|
|
6594
6595
|
__Pyx_GOTREF(__pyx_t_1);
|
|
6595
6596
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
6596
6597
|
}
|
|
@@ -6606,28 +6607,28 @@ static PyObject *__pyx_gb_6a_sync_10primitives_5locks_5event_11CythonEvent_21gen
|
|
|
6606
6607
|
__pyx_generator->resume_label = 1;
|
|
6607
6608
|
return __pyx_r;
|
|
6608
6609
|
__pyx_L9_resume_from_await:;
|
|
6609
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6610
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 180, __pyx_L1_error)
|
|
6610
6611
|
} else {
|
|
6611
6612
|
PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType();
|
|
6612
6613
|
if (exc_type) {
|
|
6613
6614
|
if (likely(exc_type == PyExc_StopIteration || (exc_type != PyExc_GeneratorExit && __Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))) PyErr_Clear();
|
|
6614
|
-
else __PYX_ERR(0,
|
|
6615
|
+
else __PYX_ERR(0, 180, __pyx_L1_error)
|
|
6615
6616
|
}
|
|
6616
6617
|
}
|
|
6617
6618
|
|
|
6618
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6619
|
+
/* "a_sync/primitives/locks/event.pyx":181
|
|
6619
6620
|
* del self # no need to hold a reference here
|
|
6620
6621
|
* await sleep(interval)
|
|
6621
6622
|
* loops += 1 # <<<<<<<<<<<<<<
|
|
6622
6623
|
*
|
|
6623
6624
|
*
|
|
6624
6625
|
*/
|
|
6625
|
-
__Pyx_TraceLine(
|
|
6626
|
+
__Pyx_TraceLine(181,0,__PYX_ERR(0, 181, __pyx_L1_error))
|
|
6626
6627
|
__pyx_cur_scope->__pyx_v_loops = (__pyx_cur_scope->__pyx_v_loops + 1);
|
|
6627
6628
|
}
|
|
6628
6629
|
CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);
|
|
6629
6630
|
|
|
6630
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6631
|
+
/* "a_sync/primitives/locks/event.pyx":161
|
|
6631
6632
|
* self._waiters.remove(fut)
|
|
6632
6633
|
*
|
|
6633
6634
|
* async def _debug_daemon(self) -> None: # <<<<<<<<<<<<<<
|
|
@@ -6883,11 +6884,11 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_5event_11CythonEvent_24__s
|
|
|
6883
6884
|
return __pyx_r;
|
|
6884
6885
|
}
|
|
6885
6886
|
|
|
6886
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6887
|
+
/* "a_sync/primitives/locks/event.pyx":184
|
|
6887
6888
|
*
|
|
6888
6889
|
*
|
|
6889
6890
|
* cdef inline bint _is_not_done(fut: Future): # <<<<<<<<<<<<<<
|
|
6890
|
-
* return
|
|
6891
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") == 0
|
|
6891
6892
|
*/
|
|
6892
6893
|
|
|
6893
6894
|
static CYTHON_INLINE int __pyx_f_6a_sync_10primitives_5locks_5event__is_not_done(PyObject *__pyx_v_fut) {
|
|
@@ -6895,31 +6896,29 @@ static CYTHON_INLINE int __pyx_f_6a_sync_10primitives_5locks_5event__is_not_done
|
|
|
6895
6896
|
__Pyx_TraceDeclarations
|
|
6896
6897
|
__Pyx_RefNannyDeclarations
|
|
6897
6898
|
PyObject *__pyx_t_1 = NULL;
|
|
6898
|
-
int __pyx_t_2;
|
|
6899
6899
|
int __pyx_lineno = 0;
|
|
6900
6900
|
const char *__pyx_filename = NULL;
|
|
6901
6901
|
int __pyx_clineno = 0;
|
|
6902
6902
|
__Pyx_RefNannySetupContext("_is_not_done", 1);
|
|
6903
|
-
__Pyx_TraceCall("_is_not_done", __pyx_f[0],
|
|
6903
|
+
__Pyx_TraceCall("_is_not_done", __pyx_f[0], 184, 0, __PYX_ERR(0, 184, __pyx_L1_error));
|
|
6904
6904
|
|
|
6905
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6905
|
+
/* "a_sync/primitives/locks/event.pyx":185
|
|
6906
6906
|
*
|
|
6907
6907
|
* cdef inline bint _is_not_done(fut: Future):
|
|
6908
|
-
* return
|
|
6908
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") == 0 # <<<<<<<<<<<<<<
|
|
6909
6909
|
*/
|
|
6910
|
-
__Pyx_TraceLine(
|
|
6911
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
6910
|
+
__Pyx_TraceLine(185,0,__PYX_ERR(0, 185, __pyx_L1_error))
|
|
6911
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error)
|
|
6912
6912
|
__Pyx_GOTREF(__pyx_t_1);
|
|
6913
|
-
|
|
6913
|
+
__pyx_r = (PyUnicode_CompareWithASCIIString(__pyx_t_1, ((char const *)"PENDING")) == 0);
|
|
6914
6914
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
6915
|
-
__pyx_r = __pyx_t_2;
|
|
6916
6915
|
goto __pyx_L0;
|
|
6917
6916
|
|
|
6918
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
6917
|
+
/* "a_sync/primitives/locks/event.pyx":184
|
|
6919
6918
|
*
|
|
6920
6919
|
*
|
|
6921
6920
|
* cdef inline bint _is_not_done(fut: Future): # <<<<<<<<<<<<<<
|
|
6922
|
-
* return
|
|
6921
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") == 0
|
|
6923
6922
|
*/
|
|
6924
6923
|
|
|
6925
6924
|
/* function exit code */
|
|
@@ -7643,7 +7642,7 @@ static int __pyx_import_star_set(PyObject *o, PyObject* py_name, char *name) {
|
|
|
7643
7642
|
}
|
|
7644
7643
|
if (0);
|
|
7645
7644
|
else if (__Pyx_StrEq(name, "_loop_kwarg_deprecated")) {
|
|
7646
|
-
__pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated = __Pyx_PyObject_IsTrue(o); if (unlikely((__pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
7645
|
+
__pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated = __Pyx_PyObject_IsTrue(o); if (unlikely((__pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 27, __pyx_L2_error)
|
|
7647
7646
|
}
|
|
7648
7647
|
else {
|
|
7649
7648
|
if (PyObject_SetAttr(__pyx_m, py_name, o) < 0) goto bad;
|
|
@@ -7790,7 +7789,6 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7790
7789
|
{&__pyx_kp_s_Literal_True, __pyx_k_Literal_True, sizeof(__pyx_k_Literal_True), 0, 0, 1, 0},
|
|
7791
7790
|
{&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
|
|
7792
7791
|
{&__pyx_n_s_None, __pyx_k_None, sizeof(__pyx_k_None), 0, 0, 1, 1},
|
|
7793
|
-
{&__pyx_n_u_PENDING, __pyx_k_PENDING, sizeof(__pyx_k_PENDING), 0, 1, 0, 1},
|
|
7794
7792
|
{&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
|
|
7795
7793
|
{&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
|
|
7796
7794
|
{&__pyx_kp_u_Waiting_for_s_for_sm, __pyx_k_Waiting_for_s_for_sm, sizeof(__pyx_k_Waiting_for_s_for_sm), 0, 1, 0, 0},
|
|
@@ -7882,11 +7880,11 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7882
7880
|
}
|
|
7883
7881
|
/* #### Code section: cached_builtins ### */
|
|
7884
7882
|
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
|
|
7885
|
-
__pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0,
|
|
7886
|
-
__pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0,
|
|
7887
|
-
__pyx_builtin_hex = __Pyx_GetBuiltinName(__pyx_n_s_hex); if (!__pyx_builtin_hex) __PYX_ERR(0,
|
|
7888
|
-
__pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(0,
|
|
7889
|
-
__pyx_builtin_round = __Pyx_GetBuiltinName(__pyx_n_s_round); if (!__pyx_builtin_round) __PYX_ERR(0,
|
|
7883
|
+
__pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
7884
|
+
__pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 75, __pyx_L1_error)
|
|
7885
|
+
__pyx_builtin_hex = __Pyx_GetBuiltinName(__pyx_n_s_hex); if (!__pyx_builtin_hex) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
7886
|
+
__pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
7887
|
+
__pyx_builtin_round = __Pyx_GetBuiltinName(__pyx_n_s_round); if (!__pyx_builtin_round) __PYX_ERR(0, 177, __pyx_L1_error)
|
|
7890
7888
|
__pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
|
|
7891
7889
|
return 0;
|
|
7892
7890
|
__pyx_L1_error:;
|
|
@@ -7898,110 +7896,110 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
7898
7896
|
__Pyx_RefNannyDeclarations
|
|
7899
7897
|
__Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
|
|
7900
7898
|
|
|
7901
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7899
|
+
/* "a_sync/primitives/locks/event.pyx":64
|
|
7902
7900
|
* self._loop = self._loop or get_event_loop()
|
|
7903
7901
|
* if debug_daemon_interval > 65535:
|
|
7904
7902
|
* raise ValueError(f"'debug_daemon_interval' is stored as a uint16 and must be less than 65535") # <<<<<<<<<<<<<<
|
|
7905
7903
|
* self._debug_daemon_interval = debug_daemon_interval
|
|
7906
7904
|
* # we need a constant to coerce to char*
|
|
7907
7905
|
*/
|
|
7908
|
-
__pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_debug_daemon_interval_is_stored); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0,
|
|
7906
|
+
__pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_debug_daemon_interval_is_stored); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
7909
7907
|
__Pyx_GOTREF(__pyx_tuple__4);
|
|
7910
7908
|
__Pyx_GIVEREF(__pyx_tuple__4);
|
|
7911
7909
|
|
|
7912
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7910
|
+
/* "a_sync/primitives/locks/event.pyx":75
|
|
7913
7911
|
*
|
|
7914
7912
|
* if self.__name == NULL:
|
|
7915
7913
|
* raise MemoryError("Failed to allocate memory for __name.") # <<<<<<<<<<<<<<
|
|
7916
7914
|
* # Copy the bytes data into the char*
|
|
7917
7915
|
* strcpy(self.__name, encoded_name)
|
|
7918
7916
|
*/
|
|
7919
|
-
__pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_Failed_to_allocate_memory_for); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0,
|
|
7917
|
+
__pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_Failed_to_allocate_memory_for); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 75, __pyx_L1_error)
|
|
7920
7918
|
__Pyx_GOTREF(__pyx_tuple__5);
|
|
7921
7919
|
__Pyx_GIVEREF(__pyx_tuple__5);
|
|
7922
7920
|
|
|
7923
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7921
|
+
/* "a_sync/primitives/locks/event.pyx":23
|
|
7924
7922
|
*
|
|
7925
7923
|
*
|
|
7926
7924
|
* async def _return_true(): # <<<<<<<<<<<<<<
|
|
7927
7925
|
* return True
|
|
7928
7926
|
*
|
|
7929
7927
|
*/
|
|
7930
|
-
__pyx_codeobj_ = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_return_true,
|
|
7928
|
+
__pyx_codeobj_ = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_return_true, 23, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj_)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
7931
7929
|
|
|
7932
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7930
|
+
/* "a_sync/primitives/locks/event.pyx":27
|
|
7933
7931
|
*
|
|
7934
7932
|
*
|
|
7935
7933
|
* cdef bint _loop_kwarg_deprecated = sys.version_info >= (3, 10) # <<<<<<<<<<<<<<
|
|
7936
7934
|
*
|
|
7937
7935
|
* cdef class CythonEvent(_DebugDaemonMixin):
|
|
7938
7936
|
*/
|
|
7939
|
-
__pyx_tuple__16 = PyTuple_Pack(2, __pyx_int_3, __pyx_int_10); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0,
|
|
7937
|
+
__pyx_tuple__16 = PyTuple_Pack(2, __pyx_int_3, __pyx_int_10); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
7940
7938
|
__Pyx_GOTREF(__pyx_tuple__16);
|
|
7941
7939
|
__Pyx_GIVEREF(__pyx_tuple__16);
|
|
7942
7940
|
|
|
7943
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7941
|
+
/* "a_sync/primitives/locks/event.pyx":104
|
|
7944
7942
|
* )
|
|
7945
7943
|
*
|
|
7946
7944
|
* cpdef bint is_set(self): # <<<<<<<<<<<<<<
|
|
7947
7945
|
* """Return True if and only if the internal flag is true."""
|
|
7948
7946
|
* return self._value
|
|
7949
7947
|
*/
|
|
7950
|
-
__pyx_tuple__17 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0,
|
|
7948
|
+
__pyx_tuple__17 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
7951
7949
|
__Pyx_GOTREF(__pyx_tuple__17);
|
|
7952
7950
|
__Pyx_GIVEREF(__pyx_tuple__17);
|
|
7953
|
-
__pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_is_set,
|
|
7951
|
+
__pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_is_set, 104, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
7954
7952
|
|
|
7955
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7953
|
+
/* "a_sync/primitives/locks/event.pyx":108
|
|
7956
7954
|
* return self._value
|
|
7957
7955
|
*
|
|
7958
7956
|
* cpdef void set(self): # <<<<<<<<<<<<<<
|
|
7959
7957
|
* """Set the internal flag to true. All coroutines waiting for it to
|
|
7960
7958
|
* become true are awakened. Coroutine that call wait() once the flag is
|
|
7961
7959
|
*/
|
|
7962
|
-
__pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_set,
|
|
7960
|
+
__pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_set, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__7)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
7963
7961
|
|
|
7964
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7962
|
+
/* "a_sync/primitives/locks/event.pyx":122
|
|
7965
7963
|
* fut.set_result(True)
|
|
7966
7964
|
*
|
|
7967
7965
|
* cpdef void clear(self): # <<<<<<<<<<<<<<
|
|
7968
7966
|
* """Reset the internal flag to false. Subsequently, coroutines calling
|
|
7969
7967
|
* wait() will block until set() is called to set the internal flag
|
|
7970
7968
|
*/
|
|
7971
|
-
__pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_clear,
|
|
7969
|
+
__pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_clear, 122, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
7972
7970
|
|
|
7973
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7971
|
+
/* "a_sync/primitives/locks/event.pyx":128
|
|
7974
7972
|
* self._value = False
|
|
7975
7973
|
*
|
|
7976
7974
|
* cpdef object wait(self): # <<<<<<<<<<<<<<
|
|
7977
7975
|
* """Block until the internal flag is true.
|
|
7978
7976
|
*
|
|
7979
7977
|
*/
|
|
7980
|
-
__pyx_codeobj__9 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_wait,
|
|
7978
|
+
__pyx_codeobj__9 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_wait, 128, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__9)) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
7981
7979
|
|
|
7982
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7980
|
+
/* "a_sync/primitives/locks/event.pyx":154
|
|
7983
7981
|
* return self.__name.decode("utf-8")
|
|
7984
7982
|
*
|
|
7985
7983
|
* async def __wait(self, fut: Future) -> Literal[True]: # <<<<<<<<<<<<<<
|
|
7986
7984
|
* try:
|
|
7987
7985
|
* await fut
|
|
7988
7986
|
*/
|
|
7989
|
-
__pyx_tuple__18 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_fut); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0,
|
|
7987
|
+
__pyx_tuple__18 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_fut); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
7990
7988
|
__Pyx_GOTREF(__pyx_tuple__18);
|
|
7991
7989
|
__Pyx_GIVEREF(__pyx_tuple__18);
|
|
7992
|
-
__pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_wait_2,
|
|
7990
|
+
__pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_wait_2, 154, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
7993
7991
|
|
|
7994
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
7992
|
+
/* "a_sync/primitives/locks/event.pyx":161
|
|
7995
7993
|
* self._waiters.remove(fut)
|
|
7996
7994
|
*
|
|
7997
7995
|
* async def _debug_daemon(self) -> None: # <<<<<<<<<<<<<<
|
|
7998
7996
|
* """
|
|
7999
7997
|
* Periodically logs debug information about the event state and waiters.
|
|
8000
7998
|
*/
|
|
8001
|
-
__pyx_tuple__19 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_start, __pyx_n_s_now, __pyx_n_s_weakself, __pyx_n_s_loops, __pyx_n_s_interval); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0,
|
|
7999
|
+
__pyx_tuple__19 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_start, __pyx_n_s_now, __pyx_n_s_weakself, __pyx_n_s_loops, __pyx_n_s_interval); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8002
8000
|
__Pyx_GOTREF(__pyx_tuple__19);
|
|
8003
8001
|
__Pyx_GIVEREF(__pyx_tuple__19);
|
|
8004
|
-
__pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_debug_daemon,
|
|
8002
|
+
__pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_primitives_locks_event_py, __pyx_n_s_debug_daemon, 161, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8005
8003
|
|
|
8006
8004
|
/* "(tree fragment)":1
|
|
8007
8005
|
* def __reduce_cython__(self): # <<<<<<<<<<<<<<
|
|
@@ -8099,12 +8097,12 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
8099
8097
|
__pyx_vtable_6a_sync_10primitives_5locks_5event_CythonEvent.wait = (PyObject *(*)(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent *, int __pyx_skip_dispatch))__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_wait;
|
|
8100
8098
|
__pyx_vtable_6a_sync_10primitives_5locks_5event_CythonEvent.c_wait = (PyObject *(*)(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent *))__pyx_f_6a_sync_10primitives_5locks_5event_11CythonEvent_c_wait;
|
|
8101
8099
|
#if CYTHON_USE_TYPE_SPECS
|
|
8102
|
-
__pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8100
|
+
__pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8103
8101
|
__Pyx_GOTREF(__pyx_t_2);
|
|
8104
8102
|
__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent_spec, __pyx_t_2);
|
|
8105
8103
|
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8106
|
-
if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent)) __PYX_ERR(0,
|
|
8107
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0,
|
|
8104
|
+
if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8105
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8108
8106
|
#else
|
|
8109
8107
|
__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent = &__pyx_type_6a_sync_10primitives_5locks_5event_CythonEvent;
|
|
8110
8108
|
#endif
|
|
@@ -8112,7 +8110,7 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
8112
8110
|
__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent->tp_base = __pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin;
|
|
8113
8111
|
#endif
|
|
8114
8112
|
#if !CYTHON_USE_TYPE_SPECS
|
|
8115
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0,
|
|
8113
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8116
8114
|
#endif
|
|
8117
8115
|
#if PY_MAJOR_VERSION < 3
|
|
8118
8116
|
__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent->tp_print = 0;
|
|
@@ -8124,7 +8122,7 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
8124
8122
|
#endif
|
|
8125
8123
|
#if CYTHON_UPDATE_DESCRIPTOR_DOC
|
|
8126
8124
|
{
|
|
8127
|
-
PyObject *wrapper = PyObject_GetAttrString((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0,
|
|
8125
|
+
PyObject *wrapper = PyObject_GetAttrString((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8128
8126
|
if (__Pyx_IS_TYPE(wrapper, &PyWrapperDescr_Type)) {
|
|
8129
8127
|
__pyx_wrapperbase_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
|
|
8130
8128
|
__pyx_wrapperbase_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__.doc = __pyx_doc_6a_sync_10primitives_5locks_5event_11CythonEvent_2__init__;
|
|
@@ -8132,24 +8130,24 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
8132
8130
|
}
|
|
8133
8131
|
}
|
|
8134
8132
|
#endif
|
|
8135
|
-
if (__Pyx_SetVtable(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0,
|
|
8133
|
+
if (__Pyx_SetVtable(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8136
8134
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
8137
|
-
if (__Pyx_MergeVtables(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0,
|
|
8135
|
+
if (__Pyx_MergeVtables(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8138
8136
|
#endif
|
|
8139
|
-
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CythonEvent, (PyObject *) __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0,
|
|
8137
|
+
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CythonEvent, (PyObject *) __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8140
8138
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
8141
|
-
if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0,
|
|
8139
|
+
if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
8142
8140
|
#endif
|
|
8143
8141
|
#if CYTHON_USE_TYPE_SPECS
|
|
8144
|
-
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true)) __PYX_ERR(0,
|
|
8145
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true) < 0) __PYX_ERR(0,
|
|
8142
|
+
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
8143
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
8146
8144
|
#else
|
|
8147
8145
|
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true = &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true;
|
|
8148
8146
|
#endif
|
|
8149
8147
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
8150
8148
|
#endif
|
|
8151
8149
|
#if !CYTHON_USE_TYPE_SPECS
|
|
8152
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true) < 0) __PYX_ERR(0,
|
|
8150
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
8153
8151
|
#endif
|
|
8154
8152
|
#if PY_MAJOR_VERSION < 3
|
|
8155
8153
|
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct___return_true->tp_print = 0;
|
|
@@ -8160,15 +8158,15 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
8160
8158
|
}
|
|
8161
8159
|
#endif
|
|
8162
8160
|
#if CYTHON_USE_TYPE_SPECS
|
|
8163
|
-
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait)) __PYX_ERR(0,
|
|
8164
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait) < 0) __PYX_ERR(0,
|
|
8161
|
+
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8162
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait) < 0) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8165
8163
|
#else
|
|
8166
8164
|
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait = &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait;
|
|
8167
8165
|
#endif
|
|
8168
8166
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
8169
8167
|
#endif
|
|
8170
8168
|
#if !CYTHON_USE_TYPE_SPECS
|
|
8171
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait) < 0) __PYX_ERR(0,
|
|
8169
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait) < 0) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8172
8170
|
#endif
|
|
8173
8171
|
#if PY_MAJOR_VERSION < 3
|
|
8174
8172
|
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_1__CythonEvent__wait->tp_print = 0;
|
|
@@ -8179,15 +8177,15 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
8179
8177
|
}
|
|
8180
8178
|
#endif
|
|
8181
8179
|
#if CYTHON_USE_TYPE_SPECS
|
|
8182
|
-
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon)) __PYX_ERR(0,
|
|
8183
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon) < 0) __PYX_ERR(0,
|
|
8180
|
+
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8181
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon_spec, __pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon) < 0) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8184
8182
|
#else
|
|
8185
8183
|
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon = &__pyx_type_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon;
|
|
8186
8184
|
#endif
|
|
8187
8185
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
8188
8186
|
#endif
|
|
8189
8187
|
#if !CYTHON_USE_TYPE_SPECS
|
|
8190
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon) < 0) __PYX_ERR(0,
|
|
8188
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon) < 0) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8191
8189
|
#endif
|
|
8192
8190
|
#if PY_MAJOR_VERSION < 3
|
|
8193
8191
|
__pyx_ptype_6a_sync_10primitives_5locks_5event___pyx_scope_struct_2__debug_daemon->tp_print = 0;
|
|
@@ -8592,7 +8590,7 @@ if (!__Pyx_RefNanny) {
|
|
|
8592
8590
|
* from libc.time cimport time
|
|
8593
8591
|
* from weakref import ref # <<<<<<<<<<<<<<
|
|
8594
8592
|
*
|
|
8595
|
-
* from
|
|
8593
|
+
* from cpython.unicode cimport PyUnicode_CompareWithASCIIString
|
|
8596
8594
|
*/
|
|
8597
8595
|
__Pyx_TraceLine(12,0,__PYX_ERR(0, 12, __pyx_L1_error))
|
|
8598
8596
|
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12, __pyx_L1_error)
|
|
@@ -8609,176 +8607,176 @@ if (!__Pyx_RefNanny) {
|
|
|
8609
8607
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8610
8608
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8611
8609
|
|
|
8612
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8613
|
-
* from
|
|
8610
|
+
/* "a_sync/primitives/locks/event.pyx":16
|
|
8611
|
+
* from cpython.unicode cimport PyUnicode_CompareWithASCIIString
|
|
8614
8612
|
*
|
|
8615
8613
|
* from a_sync._typing import * # <<<<<<<<<<<<<<
|
|
8616
8614
|
* from a_sync.primitives._debug cimport _DebugDaemonMixin, _LoopBoundMixin
|
|
8617
8615
|
*
|
|
8618
8616
|
*/
|
|
8619
|
-
__Pyx_TraceLine(
|
|
8620
|
-
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8617
|
+
__Pyx_TraceLine(16,0,__PYX_ERR(0, 16, __pyx_L1_error))
|
|
8618
|
+
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error)
|
|
8621
8619
|
__Pyx_GOTREF(__pyx_t_2);
|
|
8622
8620
|
__Pyx_INCREF(__pyx_n_s__14);
|
|
8623
8621
|
__Pyx_GIVEREF(__pyx_n_s__14);
|
|
8624
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s__14)) __PYX_ERR(0,
|
|
8625
|
-
__pyx_t_3 = __Pyx_Import(__pyx_n_s_a_sync__typing, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8622
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s__14)) __PYX_ERR(0, 16, __pyx_L1_error);
|
|
8623
|
+
__pyx_t_3 = __Pyx_Import(__pyx_n_s_a_sync__typing, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16, __pyx_L1_error)
|
|
8626
8624
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8627
8625
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8628
|
-
if (__pyx_import_star(__pyx_t_3) < 0) __PYX_ERR(0,
|
|
8626
|
+
if (__pyx_import_star(__pyx_t_3) < 0) __PYX_ERR(0, 16, __pyx_L1_error);
|
|
8629
8627
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8630
8628
|
|
|
8631
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8629
|
+
/* "a_sync/primitives/locks/event.pyx":23
|
|
8632
8630
|
*
|
|
8633
8631
|
*
|
|
8634
8632
|
* async def _return_true(): # <<<<<<<<<<<<<<
|
|
8635
8633
|
* return True
|
|
8636
8634
|
*
|
|
8637
8635
|
*/
|
|
8638
|
-
__Pyx_TraceLine(
|
|
8639
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_1_return_true, __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_return_true, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj_)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8636
|
+
__Pyx_TraceLine(23,0,__PYX_ERR(0, 23, __pyx_L1_error))
|
|
8637
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_1_return_true, __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_return_true, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj_)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
8640
8638
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8641
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_return_true, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8639
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_return_true, __pyx_t_3) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
8642
8640
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8643
8641
|
|
|
8644
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8642
|
+
/* "a_sync/primitives/locks/event.pyx":27
|
|
8645
8643
|
*
|
|
8646
8644
|
*
|
|
8647
8645
|
* cdef bint _loop_kwarg_deprecated = sys.version_info >= (3, 10) # <<<<<<<<<<<<<<
|
|
8648
8646
|
*
|
|
8649
8647
|
* cdef class CythonEvent(_DebugDaemonMixin):
|
|
8650
8648
|
*/
|
|
8651
|
-
__Pyx_TraceLine(
|
|
8652
|
-
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8649
|
+
__Pyx_TraceLine(27,0,__PYX_ERR(0, 27, __pyx_L1_error))
|
|
8650
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
8653
8651
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8654
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_version_info); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8652
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_version_info); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
8655
8653
|
__Pyx_GOTREF(__pyx_t_2);
|
|
8656
8654
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8657
|
-
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_tuple__16, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8655
|
+
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_tuple__16, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
8658
8656
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8659
|
-
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
8657
|
+
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
8660
8658
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8661
8659
|
__pyx_v_6a_sync_10primitives_5locks_5event__loop_kwarg_deprecated = __pyx_t_4;
|
|
8662
8660
|
|
|
8663
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8661
|
+
/* "a_sync/primitives/locks/event.pyx":43
|
|
8664
8662
|
* self,
|
|
8665
8663
|
* name: str = "",
|
|
8666
8664
|
* debug_daemon_interval: int = 300, # <<<<<<<<<<<<<<
|
|
8667
8665
|
* *,
|
|
8668
8666
|
* loop: Optional[AbstractEventLoop] = None,
|
|
8669
8667
|
*/
|
|
8670
|
-
__Pyx_TraceLine(
|
|
8671
|
-
if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_300)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_300))) __PYX_ERR(0,
|
|
8668
|
+
__Pyx_TraceLine(43,0,__PYX_ERR(0, 43, __pyx_L1_error))
|
|
8669
|
+
if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_300)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_300))) __PYX_ERR(0, 43, __pyx_L1_error)
|
|
8672
8670
|
__Pyx_INCREF(__pyx_int_300);
|
|
8673
8671
|
__pyx_k__3 = ((PyObject*)__pyx_int_300);
|
|
8674
8672
|
__Pyx_GIVEREF(__pyx_int_300);
|
|
8675
8673
|
|
|
8676
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8674
|
+
/* "a_sync/primitives/locks/event.pyx":104
|
|
8677
8675
|
* )
|
|
8678
8676
|
*
|
|
8679
8677
|
* cpdef bint is_set(self): # <<<<<<<<<<<<<<
|
|
8680
8678
|
* """Return True if and only if the internal flag is true."""
|
|
8681
8679
|
* return self._value
|
|
8682
8680
|
*/
|
|
8683
|
-
__Pyx_TraceLine(
|
|
8681
|
+
__Pyx_TraceLine(104,0,__PYX_ERR(0, 104, __pyx_L1_error))
|
|
8684
8682
|
|
|
8685
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_9is_set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_is_set, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__6)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8683
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_9is_set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_is_set, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__6)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
8686
8684
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8687
|
-
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_is_set, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8685
|
+
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_is_set, __pyx_t_3) < 0) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
8688
8686
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8689
8687
|
PyType_Modified(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent);
|
|
8690
8688
|
|
|
8691
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8689
|
+
/* "a_sync/primitives/locks/event.pyx":108
|
|
8692
8690
|
* return self._value
|
|
8693
8691
|
*
|
|
8694
8692
|
* cpdef void set(self): # <<<<<<<<<<<<<<
|
|
8695
8693
|
* """Set the internal flag to true. All coroutines waiting for it to
|
|
8696
8694
|
* become true are awakened. Coroutine that call wait() once the flag is
|
|
8697
8695
|
*/
|
|
8698
|
-
__Pyx_TraceLine(
|
|
8696
|
+
__Pyx_TraceLine(108,0,__PYX_ERR(0, 108, __pyx_L1_error))
|
|
8699
8697
|
|
|
8700
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_11set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_set, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8698
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_11set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_set, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
8701
8699
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8702
|
-
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_set, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8700
|
+
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_set, __pyx_t_3) < 0) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
8703
8701
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8704
8702
|
PyType_Modified(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent);
|
|
8705
8703
|
|
|
8706
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8704
|
+
/* "a_sync/primitives/locks/event.pyx":122
|
|
8707
8705
|
* fut.set_result(True)
|
|
8708
8706
|
*
|
|
8709
8707
|
* cpdef void clear(self): # <<<<<<<<<<<<<<
|
|
8710
8708
|
* """Reset the internal flag to false. Subsequently, coroutines calling
|
|
8711
8709
|
* wait() will block until set() is called to set the internal flag
|
|
8712
8710
|
*/
|
|
8713
|
-
__Pyx_TraceLine(
|
|
8711
|
+
__Pyx_TraceLine(122,0,__PYX_ERR(0, 122, __pyx_L1_error))
|
|
8714
8712
|
|
|
8715
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_13clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_clear, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8713
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_13clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_clear, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
8716
8714
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8717
|
-
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_clear, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8715
|
+
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_clear, __pyx_t_3) < 0) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
8718
8716
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8719
8717
|
PyType_Modified(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent);
|
|
8720
8718
|
|
|
8721
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8719
|
+
/* "a_sync/primitives/locks/event.pyx":128
|
|
8722
8720
|
* self._value = False
|
|
8723
8721
|
*
|
|
8724
8722
|
* cpdef object wait(self): # <<<<<<<<<<<<<<
|
|
8725
8723
|
* """Block until the internal flag is true.
|
|
8726
8724
|
*
|
|
8727
8725
|
*/
|
|
8728
|
-
__Pyx_TraceLine(
|
|
8726
|
+
__Pyx_TraceLine(128,0,__PYX_ERR(0, 128, __pyx_L1_error))
|
|
8729
8727
|
|
|
8730
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_15wait, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_wait, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__9)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8728
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_15wait, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CythonEvent_wait, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__9)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
8731
8729
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8732
|
-
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_wait, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8730
|
+
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_wait, __pyx_t_3) < 0) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
8733
8731
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8734
8732
|
PyType_Modified(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent);
|
|
8735
8733
|
|
|
8736
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8734
|
+
/* "a_sync/primitives/locks/event.pyx":140
|
|
8737
8735
|
* return self.c_wait()
|
|
8738
8736
|
*
|
|
8739
8737
|
* cdef object c_wait(self): # <<<<<<<<<<<<<<
|
|
8740
8738
|
* if self._value:
|
|
8741
8739
|
* return _return_true()
|
|
8742
8740
|
*/
|
|
8743
|
-
__Pyx_TraceLine(
|
|
8741
|
+
__Pyx_TraceLine(140,0,__PYX_ERR(0, 140, __pyx_L1_error))
|
|
8744
8742
|
|
|
8745
8743
|
|
|
8746
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8744
|
+
/* "a_sync/primitives/locks/event.pyx":154
|
|
8747
8745
|
* return self.__name.decode("utf-8")
|
|
8748
8746
|
*
|
|
8749
8747
|
* async def __wait(self, fut: Future) -> Literal[True]: # <<<<<<<<<<<<<<
|
|
8750
8748
|
* try:
|
|
8751
8749
|
* await fut
|
|
8752
8750
|
*/
|
|
8753
|
-
__Pyx_TraceLine(
|
|
8754
|
-
__pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8751
|
+
__Pyx_TraceLine(154,0,__PYX_ERR(0, 154, __pyx_L1_error))
|
|
8752
|
+
__pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8755
8753
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8756
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fut, __pyx_n_s_Future) < 0) __PYX_ERR(0,
|
|
8757
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Literal_True) < 0) __PYX_ERR(0,
|
|
8758
|
-
__pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_17_CythonEvent__wait, __Pyx_CYFUNCTION_CCLASS | __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_CythonEvent___wait, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__10)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8754
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fut, __pyx_n_s_Future) < 0) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8755
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Literal_True) < 0) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8756
|
+
__pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_17_CythonEvent__wait, __Pyx_CYFUNCTION_CCLASS | __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_CythonEvent___wait, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__10)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8759
8757
|
__Pyx_GOTREF(__pyx_t_2);
|
|
8760
8758
|
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_3);
|
|
8761
8759
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8762
|
-
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_CythonEvent__wait, __pyx_t_2) < 0) __PYX_ERR(0,
|
|
8760
|
+
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_CythonEvent__wait, __pyx_t_2) < 0) __PYX_ERR(0, 154, __pyx_L1_error)
|
|
8763
8761
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8764
8762
|
PyType_Modified(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent);
|
|
8765
8763
|
|
|
8766
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8764
|
+
/* "a_sync/primitives/locks/event.pyx":161
|
|
8767
8765
|
* self._waiters.remove(fut)
|
|
8768
8766
|
*
|
|
8769
8767
|
* async def _debug_daemon(self) -> None: # <<<<<<<<<<<<<<
|
|
8770
8768
|
* """
|
|
8771
8769
|
* Periodically logs debug information about the event state and waiters.
|
|
8772
8770
|
*/
|
|
8773
|
-
__Pyx_TraceLine(
|
|
8774
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8771
|
+
__Pyx_TraceLine(161,0,__PYX_ERR(0, 161, __pyx_L1_error))
|
|
8772
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8775
8773
|
__Pyx_GOTREF(__pyx_t_2);
|
|
8776
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_return, __pyx_n_s_None) < 0) __PYX_ERR(0,
|
|
8777
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_20_debug_daemon, __Pyx_CYFUNCTION_CCLASS | __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_CythonEvent__debug_daemon, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__11)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8774
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_return, __pyx_n_s_None) < 0) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8775
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_5event_11CythonEvent_20_debug_daemon, __Pyx_CYFUNCTION_CCLASS | __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_CythonEvent__debug_daemon, NULL, __pyx_n_s_a_sync_primitives_locks_event, __pyx_d, ((PyObject *)__pyx_codeobj__11)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8778
8776
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8779
8777
|
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2);
|
|
8780
8778
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8781
|
-
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_debug_daemon, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8779
|
+
if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent, __pyx_n_s_debug_daemon, __pyx_t_3) < 0) __PYX_ERR(0, 161, __pyx_L1_error)
|
|
8782
8780
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8783
8781
|
PyType_Modified(__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent);
|
|
8784
8782
|
|
|
@@ -8805,13 +8803,13 @@ if (!__Pyx_RefNanny) {
|
|
|
8805
8803
|
if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
|
|
8806
8804
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8807
8805
|
|
|
8808
|
-
/* "a_sync/primitives/locks/event.pyx":
|
|
8806
|
+
/* "a_sync/primitives/locks/event.pyx":184
|
|
8809
8807
|
*
|
|
8810
8808
|
*
|
|
8811
8809
|
* cdef inline bint _is_not_done(fut: Future): # <<<<<<<<<<<<<<
|
|
8812
|
-
* return
|
|
8810
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") == 0
|
|
8813
8811
|
*/
|
|
8814
|
-
__Pyx_TraceLine(
|
|
8812
|
+
__Pyx_TraceLine(184,0,__PYX_ERR(0, 184, __pyx_L1_error))
|
|
8815
8813
|
|
|
8816
8814
|
|
|
8817
8815
|
/* "a_sync/primitives/locks/event.pyx":1
|