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.c4344 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local
4348 PyThread_release_lock(test_c_thread->start_event); in temporary_c_thread()
4353 res = _PyObject_CallNoArg(test_c_thread->callback); in temporary_c_thread()
4354 Py_CLEAR(test_c_thread->callback); in temporary_c_thread()
4366 PyThread_release_lock(test_c_thread->exit_event); in temporary_c_thread()
4375 test_c_thread_t test_c_thread; in call_in_temporary_c_thread() local
4378 test_c_thread.start_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
4379 test_c_thread.exit_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()
4380 test_c_thread.callback = NULL; in call_in_temporary_c_thread()
4381 if (!test_c_thread.start_event || !test_c_thread.exit_event) { in call_in_temporary_c_thread()
[all …]