Home
last modified time | relevance | path

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

/aosp_15_r20/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 …]
/aosp_15_r20/external/python/cpython3/Modules/
D_testcapimodule.c4519 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local
4523 PyThread_release_lock(test_c_thread->start_event); in temporary_c_thread()
4528 res = PyObject_CallNoArgs(test_c_thread->callback); in temporary_c_thread()
4529 Py_CLEAR(test_c_thread->callback); in temporary_c_thread()
4541 PyThread_release_lock(test_c_thread->exit_event); in temporary_c_thread()
4544 static test_c_thread_t test_c_thread; variable
4558 test_c_thread.start_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
4559 test_c_thread.exit_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
4560 test_c_thread.callback = NULL; in call_in_temporary_c_thread()
4561 if (!test_c_thread.start_event || !test_c_thread.exit_event) { in call_in_temporary_c_thread()
[all …]