Lines Matching refs:thread_done
3022 * `thread_done` when it's finished. The driver code has to know when the
3028 static PyThread_type_lock thread_done = NULL;
3043 /* Same thing, but releases `thread_done` when it returns. This variant
3050 PyThread_release_lock(thread_done);
3068 thread_done = PyThread_allocate_lock();
3069 if (thread_done == NULL)
3071 PyThread_acquire_lock(thread_done, 1);
3080 PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
3090 PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
3094 PyThread_release_lock(thread_done);
3096 PyThread_free_lock(thread_done);