Searched refs:thread_done (Results 1 - 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
H A D_testcapimodule.c1856 * `thread_done` when it's finished. The driver code has to know when the
1862 static PyThread_type_lock thread_done = NULL; variable
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);
[all...]
/external/python/cpython3/Modules/
H A D_testcapimodule.c2214 * `thread_done` when it's finished. The driver code has to know when the
2220 static PyThread_type_lock thread_done = NULL; variable
2235 /* Same thing, but releases `thread_done` when it returns. This variant
2242 PyThread_release_lock(thread_done);
2262 thread_done = PyThread_allocate_lock();
2263 if (thread_done == NULL)
2265 PyThread_acquire_lock(thread_done, 1);
2274 PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
2284 PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
2288 PyThread_release_lock(thread_done);
[all...]

Completed in 164 milliseconds