Searched refs:test_c_thread (Results 1 – 2 of 2) sorted by relevance
2350 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local2354 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() local2386 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 …]
3756 test_c_thread_t *test_c_thread = data; in temporary_c_thread() local3760 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() local3792 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 …]