• Home
  • Raw
  • Download

Lines Matching refs:test_c_thread

4344     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()
4387 test_c_thread.callback = callback; in call_in_temporary_c_thread()
4389 PyThread_acquire_lock(test_c_thread.start_event, 1); in call_in_temporary_c_thread()
4390 PyThread_acquire_lock(test_c_thread.exit_event, 1); in call_in_temporary_c_thread()
4392 thread = PyThread_start_new_thread(temporary_c_thread, &test_c_thread); in call_in_temporary_c_thread()
4395 PyThread_release_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
4396 PyThread_release_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()
4400 PyThread_acquire_lock(test_c_thread.start_event, 1); in call_in_temporary_c_thread()
4401 PyThread_release_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
4404 PyThread_acquire_lock(test_c_thread.exit_event, 1); in call_in_temporary_c_thread()
4405 PyThread_release_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()
4412 Py_CLEAR(test_c_thread.callback); in call_in_temporary_c_thread()
4413 if (test_c_thread.start_event) in call_in_temporary_c_thread()
4414 PyThread_free_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
4415 if (test_c_thread.exit_event) in call_in_temporary_c_thread()
4416 PyThread_free_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()