• Home
  • Raw
  • Download

Lines Matching refs:test_c_thread

3756     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()
3801 test_c_thread.callback = callback; in call_in_temporary_c_thread()
3803 PyThread_acquire_lock(test_c_thread.start_event, 1); in call_in_temporary_c_thread()
3804 PyThread_acquire_lock(test_c_thread.exit_event, 1); in call_in_temporary_c_thread()
3806 thread = PyThread_start_new_thread(temporary_c_thread, &test_c_thread); in call_in_temporary_c_thread()
3809 PyThread_release_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
3810 PyThread_release_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()
3814 PyThread_acquire_lock(test_c_thread.start_event, 1); in call_in_temporary_c_thread()
3815 PyThread_release_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
3818 PyThread_acquire_lock(test_c_thread.exit_event, 1); in call_in_temporary_c_thread()
3819 PyThread_release_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()
3826 Py_CLEAR(test_c_thread.callback); in call_in_temporary_c_thread()
3827 if (test_c_thread.start_event) in call_in_temporary_c_thread()
3828 PyThread_free_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
3829 if (test_c_thread.exit_event) in call_in_temporary_c_thread()
3830 PyThread_free_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()