Searched defs:threads (Results 1 - 2 of 2) sorted by relevance

/frameworks/wilhelm/tests/sandbox/
H A Dmultithread.c17 // Multiple threads create and destroy objects
37 pthread_t threads[MAX_THREAD]; variable
128 // create threads
155 ok = pthread_create(&threads[i], (const pthread_attr_t *) NULL, thread_start,
171 // signal threads that they should exit
183 // now wait for the threads to actually exit
185 ok = pthread_join(threads[i], NULL);
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java41 /* Where worker threads stand idle */
42 Vector threads = new Vector(); field in class:TestWebServer
44 /* List of all active worker threads */
50 /* max # worker threads */
216 * The AcceptThread is responsible for initiating worker threads
264 synchronized (threads) {
265 if (threads.isEmpty()) {
271 w = (Worker) threads.elementAt(0);
272 threads.removeElementAt(0);
298 // Stop worker threads fro
[all...]

Completed in 46 milliseconds