Searched refs:test_c_thread (Results 1 – 2 of 2) sorted by relevance
1611 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local1615 PyThread_release_lock(test_c_thread->start_event); in temporary_c_thread()1620 res = PyObject_CallNoArgs(test_c_thread->callback); in temporary_c_thread()1621 Py_CLEAR(test_c_thread->callback); in temporary_c_thread()1633 PyThread_release_lock(test_c_thread->exit_event); in temporary_c_thread()1636 static test_c_thread_t test_c_thread; variable1650 test_c_thread.start_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()1651 test_c_thread.exit_event = PyThread_allocate_lock(); in call_in_temporary_c_thread()1652 test_c_thread.callback = NULL; in call_in_temporary_c_thread()1653 if (!test_c_thread.start_event || !test_c_thread.exit_event) { in call_in_temporary_c_thread()[all …]
529 Modules/_testcapimodule.c - test_c_thread -