Searched refs:thread (Results 1 - 10 of 10) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_clock.c25 // this thread soaks the CPU so that clock() function will advance
36 pthread_t thread; local
42 pthread_create(&thread, NULL, cpu_hog, NULL);
54 // exit could wait for the other thread to complete
/system/extras/tests/bionic/libc/other/
H A Dtest_thread_max.c36 fprintf(stderr, "thread %ld\n", (long)arg );
50 pthread_t thread; local
53 if (pthread_create( &thread, &attr, thread_func, (void*)(long)count ) < 0) {
54 fprintf(stderr, "could not create thread %d\n", count);
/system/bluetooth/tools/
H A Dsocktest.c434 pthread_t thread; local
445 pthread_create(&thread, NULL, (void *)thread_delay_close, (void *)&args);
449 pthread_join(thread, NULL);
459 pthread_t thread; local
470 pthread_create(&thread, NULL, (void *)thread_accept, (void *)&args);
475 pthread_join(thread, NULL);
487 pthread_t thread; local
494 pthread_create(&thread, NULL, (void *)thread_connect, (void *)&args);
499 pthread_join(thread, NULL);
512 pthread_t thread; local
542 pthread_t thread; local
570 pthread_t thread; local
[all...]
H A Dasocket_test.c420 pthread_t thread; local
431 pthread_create(&thread, NULL, (void *)thread_delay_close, (void *)&args);
435 pthread_join(thread, NULL);
445 pthread_t thread; local
456 pthread_create(&thread, NULL, (void *)thread_accept, (void *)&args);
461 pthread_join(thread, NULL);
473 pthread_t thread; local
480 pthread_create(&thread, NULL, (void *)thread_connect, (void *)&args);
485 pthread_join(thread, NULL);
495 // accept in one thread
498 pthread_t thread; local
[all...]
H A Dsock_shutdown_test.c227 pthread_t thread; local
238 pthread_create(&thread, NULL, (void *)thread_accept, (void *)&args);
243 pthread_join(thread, NULL);
/system/core/toolbox/
H A Dsetconsole.c129 pthread_t thread; local
134 pthread_create(&thread, &attr, activate_thread, (void*)fd);
/system/netd/
H A DDnsProxyListener.cpp51 pthread_t thread; local
52 pthread_create(&thread, NULL,
220 pthread_t thread; local
221 pthread_create(&thread, NULL,
/system/core/adb/
H A Dsysdeps.h70 static __inline__ int adb_thread_create( adb_thread_t *thread, adb_thread_func_t func, void* arg) argument
72 thread->tid = _beginthread( (win_thread_func_t)func, 0, arg );
73 if (thread->tid == (unsigned)-1L) {
H A Dsysdeps_win32.c1442 * waiting threads as there are chunks. Then each thread would wait on a chunk of
1447 /* Number of handles to wait on in each wating thread. */
1450 /* Descriptor for a wating thread */
1453 * accross all the waiting threads, so each waiting thread knows when any
1454 * other thread has exited, so it can exit too. */
1456 /* Upon exit from a waiting thread contains the index of the handle that has
1465 /* Array of handles to wait on in a waiting thread. */
1471 /* Waiting thread handle. */
1472 HANDLE thread; member in struct:WaitForAllParam
1475 /* Waiting thread routin
[all...]
/system/core/sdcard/
H A Dsdcard.c846 * saves us 128KB per request handler thread at the cost of this scary comment. */
1224 pthread_t thread; local
1225 int res = pthread_create(&thread, NULL, start_handler, &handlers[i]);
1227 ERROR("failed to start thread #%d, error=%d", i, res);

Completed in 81 milliseconds