• Home
  • Raw
  • Download

Lines Matching refs:test_c_thread

2350     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()
2395 test_c_thread.callback = callback; in call_in_temporary_c_thread()
2397 PyThread_acquire_lock(test_c_thread.start_event, 1); in call_in_temporary_c_thread()
2398 PyThread_acquire_lock(test_c_thread.exit_event, 1); in call_in_temporary_c_thread()
2400 thread = PyThread_start_new_thread(temporary_c_thread, &test_c_thread); in call_in_temporary_c_thread()
2403 PyThread_release_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
2404 PyThread_release_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()
2408 PyThread_acquire_lock(test_c_thread.start_event, 1); in call_in_temporary_c_thread()
2409 PyThread_release_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
2412 PyThread_acquire_lock(test_c_thread.exit_event, 1); in call_in_temporary_c_thread()
2413 PyThread_release_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()
2420 Py_CLEAR(test_c_thread.callback); in call_in_temporary_c_thread()
2421 if (test_c_thread.start_event) in call_in_temporary_c_thread()
2422 PyThread_free_lock(test_c_thread.start_event); in call_in_temporary_c_thread()
2423 if (test_c_thread.exit_event) in call_in_temporary_c_thread()
2424 PyThread_free_lock(test_c_thread.exit_event); in call_in_temporary_c_thread()