/system/extras/tests/bionic/libc/common/ |
H A D | test_clock.c | 25 // 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 D | test_thread_max.c | 36 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 D | socktest.c | 434 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 D | asocket_test.c | 420 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 D | sock_shutdown_test.c | 227 pthread_t thread; local 238 pthread_create(&thread, NULL, (void *)thread_accept, (void *)&args); 243 pthread_join(thread, NULL);
|
/system/core/toolbox/ |
H A D | setconsole.c | 129 pthread_t thread; local 134 pthread_create(&thread, &attr, activate_thread, (void*)fd);
|
/system/netd/ |
H A D | DnsProxyListener.cpp | 51 pthread_t thread; local 52 pthread_create(&thread, NULL, 220 pthread_t thread; local 221 pthread_create(&thread, NULL,
|
/system/core/adb/ |
H A D | sysdeps.h | 70 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 D | sysdeps_win32.c | 1442 * 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 D | sdcard.c | 846 * 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);
|