Home
last modified time | relevance | path

Searched refs:test_c_thread (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_testcapimodule.c2350 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local
2354 PyThread_release_lock(test_c_thread->start_event); in temporary_c_thread()
2359 res = PyObject_CallFunction(test_c_thread->callback, "", NULL); in temporary_c_thread()
2360 Py_CLEAR(test_c_thread->callback); in temporary_c_thread()
2372 PyThread_release_lock(test_c_thread->exit_event); in temporary_c_thread()
2381 test_c_thread_t test_c_thread; in call_in_temporary_c_thread() local
2386 test_c_thread.start_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
2387 test_c_thread.exit_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
2388 test_c_thread.callback = NULL; in call_in_temporary_c_thread()
2389 if (!test_c_thread.start_event || !test_c_thread.exit_event) { in call_in_temporary_c_thread()
[all …]
/external/python/cpython3/Modules/
D_testcapimodule.c3756 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local
3760 PyThread_release_lock(test_c_thread->start_event); in temporary_c_thread()
3765 res = _PyObject_CallNoArg(test_c_thread->callback); in temporary_c_thread()
3766 Py_CLEAR(test_c_thread->callback); in temporary_c_thread()
3778 PyThread_release_lock(test_c_thread->exit_event); in temporary_c_thread()
3787 test_c_thread_t test_c_thread; in call_in_temporary_c_thread() local
3792 test_c_thread.start_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
3793 test_c_thread.exit_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
3794 test_c_thread.callback = NULL; in call_in_temporary_c_thread()
3795 if (!test_c_thread.start_event || !test_c_thread.exit_event) { in call_in_temporary_c_thread()
[all …]