| /external/valgrind/main/helgrind/tests/ |
| pth_destroy_cond.c | 10 pthread_t thread; variable 29 pthread_create(&thread, NULL, ThreadFunction, (void*) NULL); 35 pthread_join(thread, NULL);
|
| /external/valgrind/main/none/tests/s390x/ |
| ex_clone.c | 13 pthread_t thread; variable 42 pthread_create(&thread, NULL, threadfunc, NULL); 57 pthread_join(thread, NULL);
|
| /external/conscrypt/src/test/java/org/conscrypt/ |
| FileClientSessionCacheTest.java | 35 Thread[] threads = new Thread[10]; 39 threads[i] = new Thread() { 48 for (Thread thread : threads) { 49 thread.start(); 51 for (Thread thread : threads) { 52 thread.join();
|
| /art/test/051-thread/src/ |
| Main.java | 20 * Test some basic thread stuff. 24 System.out.println("thread test starting"); 29 System.out.println("thread test done"); 33 * Simple thread capacity test. 41 for (TestCapacityThread thread : threads) { 42 thread.start(); 44 for (TestCapacityThread thread : threads) { 45 thread.join(); 48 System.out.println("testThreadCapacity thread count: " + TestCapacityThread.mCount); 51 private static class TestCapacityThread extends Thread { 119 Thread thread = new Thread() { local [all...] |
| /bionic/libc/bionic/ |
| pthread_exit.cpp | 42 * and thread cancelation 46 pthread_internal_t* thread = __get_thread(); local 49 c->__cleanup_prev = thread->cleanup_stack; 50 thread->cleanup_stack = c; 54 pthread_internal_t* thread = __get_thread(); local 55 thread->cleanup_stack = c->__cleanup_prev; 62 pthread_internal_t* thread = __get_thread(); local 63 thread->return_value = return_value; 66 while (thread->cleanup_stack) { 67 __pthread_cleanup_t* c = thread->cleanup_stack [all...] |
| /cts/libs/vogar-expect/src/vogar/util/ |
| Threads.java | 34 public synchronized Thread newThread(Runnable r) { 35 Thread thread = new Thread(r, name + "-" + (nextId++)); local 36 thread.setDaemon(true); 37 return thread;
|
| /external/chromium_org/base/synchronization/ |
| waitable_event_unittest.cc | 97 PlatformThreadHandle thread; local 98 PlatformThread::Create(0, &signaler, &thread); 102 PlatformThread::Join(thread);
|
| /external/chromium_org/chrome/browser/spellchecker/ |
| spellcheck_message_filter_mac_unittest.cc | 52 content::BrowserThread::ID thread; local 57 thread = content::BrowserThread::IO; 58 filter->OverrideThreadForMessage(message, &thread); 59 EXPECT_EQ(content::BrowserThread::UI, thread);
|
| /external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
| signal.c | 5 * Thread-aware signal functions. 44 * signal (interrupt) to a specified thread in the same 51 * Each thread maintains information about which 53 * are set on a per-process basis - not per-thread. 54 * When signalled, a thread will check it's sigmask 57 * thread must then (except for some signals) return to 60 * Ideally the system itself would check the target thread's 61 * mask before possibly needlessly bothering the thread 63 * in the signaling thread since it has access to 67 * serialisation of the access to the per-thread signa 102 pthread_t thread = pthread_self (); local [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/base/ |
| nullsocketserver_unittest.cc | 48 Thread thread; local 49 EXPECT_TRUE(thread.Start()); 50 thread.Post(this, 0);
|
| /external/chromium_org/third_party/webrtc/base/ |
| nullsocketserver_unittest.cc | 31 Thread thread; local 32 EXPECT_TRUE(thread.Start()); 33 thread.Post(this, 0);
|
| /external/chromium_org/third_party/webrtc/system_wrappers/source/ |
| thread_unittest.cc | 24 ThreadWrapper* thread = ThreadWrapper::CreateThread(&NullRunFunction, NULL); local 26 ASSERT_TRUE(thread->Start(id)); 27 EXPECT_TRUE(thread->Stop()); 28 delete thread; 40 ThreadWrapper* thread = ThreadWrapper::CreateThread(&SetFlagRunFunction, local 43 ASSERT_TRUE(thread->Start(id)); 46 EXPECT_TRUE(thread->Stop()); 48 // We expect the thread to have run at least once. 50 delete thread;
|
| /external/chromium_org/v8/test/cctest/ |
| test-platform-tls.cc | 36 using v8::internal::Thread; 40 static Thread::LocalStorageKey keys[kValueCount]; 49 CHECK(!Thread::HasThreadLocal(keys[i])); 52 Thread::SetThreadLocal(keys[i], GetValue(i)); 55 CHECK(Thread::HasThreadLocal(keys[i])); 58 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i])); 59 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i])); 62 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1)); 65 CHECK(Thread::HasThreadLocal(keys[i])); 69 Thread::GetThreadLocal(keys[i])) 90 TestThread thread; local [all...] |
| /external/clang/test/CodeGen/ |
| 2003-11-27-ConstructorCast.c | 13 struct thread_struct thread = (struct thread_struct) { {{0}} }; local
|
| 2003-11-27-UnionCtorInitialization.c | 15 struct thread_struct thread = (struct thread_struct) { {{0}} }; local
|
| /external/compiler-rt/test/asan/TestCases/ |
| deep_thread_stack.cc | 30 pthread_t thread; local 31 pthread_create(&thread, NULL, (callback_type)function, NULL); 32 pthread_join(thread, NULL); 50 // CHECK: WRITE of size 4 at 0x{{.*}} thread T[[ACCESS_THREAD:[0-9]+]] 51 // CHECK: freed by thread T[[FREE_THREAD:[0-9]+]] here: 52 // CHECK: previously allocated by thread T[[ALLOC_THREAD:[0-9]+]] here: 53 // CHECK: Thread T[[ACCESS_THREAD]] created by T[[ACCESS_RUNNER:[0-9]+]] here: 54 // CHECK: Thread T[[ACCESS_RUNNER]] created by T0 here: 55 // CHECK: Thread T[[FREE_THREAD]] created by T[[FREE_RUNNER:[0-9]+]] here: 56 // CHECK: Thread T[[FREE_RUNNER]] created by T0 here [all...] |
| /external/compiler-rt/test/tsan/ |
| getline_nohang.cc | 4 // See https://code.google.com/p/thread-sanitizer/issues/detail?id=47 9 void *thread(void *unused) { function 28 pthread_create(&t, &a, thread, NULL);
|
| /external/deqp/framework/delibs/destream/ |
| deStreamCpyThread.c | 21 * \brief Stream copying thread 30 deStreamCpyThread* thread = (deStreamCpyThread*)arg; local 31 deUint8* buffer = malloc(sizeof(deUint8) * thread->bufferSize); 39 readResult = deInStream_read(thread->input, buffer, thread->bufferSize, &read); 44 deOutStream_write(thread->output, buffer, read - written, &wrote); 56 deOutStream_flush(thread->output); 62 deStreamCpyThread* thread = malloc(sizeof(deStreamCpyThread)); local 64 DE_ASSERT(thread); 68 thread->input = input [all...] |
| /external/ltrace/testsuite/ltrace.torture/ |
| vfork-thread.c | 40 pthread_t thread; local 41 pthread_create (&thread, NULL, &routine, NULL); 48 pthread_join (thread, NULL);
|
| /external/valgrind/main/drd/tests/ |
| concurrent_close.cpp | 15 void* thread(void*) function 37 r = pthread_create(&threads[i], &attr, thread, 0); 39 fprintf(stderr, "Failed to create thread %d\n", i); 47 fprintf(stderr, "Failed to join thread %d\n", i);
|
| pth_barrier_thr_cr.c | 3 * pthread_barrier_wait() call is invoked by another thread. This is the only 18 static void* thread(void* arg) function 40 res = pthread_create(&tid[i], NULL, thread, NULL);
|
| std_string.cpp | 2 * Test program that uses std::string object from more than one thread and 48 pthread_t thread[2]; local 50 for (int i = 0; i < sizeof(thread)/sizeof(thread[0]); i++) { 51 int ret = pthread_create(&thread[i], NULL, &fillTable, NULL); 53 fprintf(stderr, "Failed to create thread %d: %d\n", i, ret); 58 for (int i = 0; i < sizeof(thread)/sizeof(thread[0]); i++) { 59 int ret = pthread_join(thread[i], NULL); 61 fprintf(stderr, "Failed to join thread %d: %d\n", i, ret) [all...] |
| /frameworks/opt/bitmap/src/com/android/bitmap/ |
| NamedThreadFactory.java | 34 public Thread newThread(final Runnable runnable) { 35 final Thread thread = mDefaultThreadFactory.newThread(runnable); local 36 thread.setName(mBaseName + "-" + mCount.getAndIncrement()); 37 return thread;
|
| /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
| MonitorContendedEnterAndEnteredDebuggee.java | 31 BlockedThread thread; field in class:MonitorContendedEnterAndEnteredDebuggee 34 thread = new BlockedThread(logWriter,TESTED_THREAD); 37 logWriter.println("--> Main thread : started"); 44 logWriter.println("main thread: start tested thread"); 45 thread.start(); 47 // wait and hold the lock until the second thread blocks 48 while (!thread.getState().equals(Thread.State.valueOf("BLOCKED"))){ 49 Thread.yield() [all...] |
| /packages/apps/Dialer/src/com/android/dialer/interactions/ |
| UndemoteOutgoingCallReceiver.java | 45 final Thread thread = new Thread() { local 54 thread.start();
|