Lines Matching refs:thread_done
1856 * `thread_done` when it's finished. The driver code has to know when the
1862 static PyThread_type_lock thread_done = NULL;
1877 /* Same thing, but releases `thread_done` when it returns. This variant
1884 PyThread_release_lock(thread_done);
1904 thread_done = PyThread_allocate_lock();
1905 if (thread_done == NULL)
1907 PyThread_acquire_lock(thread_done, 1);
1916 PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
1926 PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
1930 PyThread_release_lock(thread_done);
1932 PyThread_free_lock(thread_done);