/external/valgrind/main/drd/tests/ |
pth_detached3.c | 1 /* Invoke pthread_detach() with an invalid thread ID. */ 15 pthread_t thread; local 17 pthread_create(&thread, NULL, thread_func, NULL); 18 pthread_join(thread, NULL); 20 /* Invoke pthread_detach() with the thread ID of a joined thread. */ 21 pthread_detach(thread); 23 /* Invoke pthread_detach() with an invalid thread ID. */ 24 pthread_detach(thread + 1);
|
pth_barrier_race.c | 22 static void* thread(void* arg) function 35 pthread_create(&tid, NULL, thread, NULL); 40 * happens after the created thread has returned from pthread_barrier_wait().
|
pth_cancel_locked.c | 1 /** Cancel a thread that holds a lock on a mutex. */ 14 static void* thread(void* arg) function 18 /* Inform the main thread that s_mutex2 has been locked, and wait for pthread_cancel(). */ 34 /* Create thread. */ 36 pthread_create(&tid, 0, &thread, 0); 38 /* Wait until the created thread has locked s_mutex2. */ 42 /* Cancel the created thread. */ 45 /* Join the created thread. */
|
/system/extras/tests/bionic/libc/common/ |
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
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
LoadLocaleProviderTestHelper.java | 29 Thread thread = new Thread(this); local 30 thread.setContextClassLoader(loader); 31 thread.start(); 32 thread.join();
|
/frameworks/base/core/tests/coretests/src/android/content/ |
ContentQueryMapTest.java | 34 /** Helper class to run test code in a new thread with a Looper. */ 35 private abstract class LooperThread extends Thread { 54 LooperThread thread = new LooperThread() { local 99 thread.start(); 100 thread.join(); 101 if (thread.mError != null) throw thread.mError; 102 assertTrue(thread.mSuccess);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldInheritableThreadLocalTest.java | 38 Thread thread = new Thread() { local 43 thread.start(); 44 thread.join();
|
/external/chromium/third_party/libjingle/source/talk/examples/login/ |
login_main.cc | 31 #include "talk/base/thread.h" 44 // Start xmpp on a different thread 45 XmppThread thread; local 46 thread.Start(); 54 thread.Login(xcs); 56 // Use main thread for console input
|
/external/junit/src/org/junit/internal/runners/statements/ |
FailOnTimeout.java | 20 StatementThread thread= evaluateStatement(); local 21 if (!thread.fFinished) 22 throwExceptionForUnfinishedThread(thread); 26 StatementThread thread= new StatementThread(fOriginalStatement); local 27 thread.start(); 28 thread.join(fTimeout); 29 thread.interrupt(); 30 return thread; 33 private void throwExceptionForUnfinishedThread(StatementThread thread) 35 if (thread.fExceptionThrownByOriginalStatement != null [all...] |
/external/qemu/audio/ |
audio_pt_int.h | 8 pthread_t thread; member in struct:audio_pt
|
/external/qemu/ |
qemu-thread.h | 15 pthread_t thread; member in struct:QemuThread 36 void qemu_thread_create(QemuThread *thread, 39 void qemu_thread_signal(QemuThread *thread, int sig); 40 void qemu_thread_self(QemuThread *thread);
|
/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/webkit/Source/WebCore/workers/ |
DedicatedWorkerContext.cpp | 44 DedicatedWorkerContext::DedicatedWorkerContext(const KURL& url, const String& userAgent, DedicatedWorkerThread* thread) 45 : WorkerContext(url, userAgent, thread) 69 thread()->workerObjectProxy().postMessageToWorkerObject(message, channels.release()); 75 thread()->workerObjectProxy().reportPendingActivity(hasPendingActivity()); 78 DedicatedWorkerThread* DedicatedWorkerContext::thread() function in class:WebCore::DedicatedWorkerContext 80 return static_cast<DedicatedWorkerThread*>(Base::thread());
|
SharedWorkerContext.cpp | 52 SharedWorkerContext::SharedWorkerContext(const String& name, const KURL& url, const String& userAgent, SharedWorkerThread* thread) 53 : WorkerContext(url, userAgent, thread) 62 SharedWorkerThread* SharedWorkerContext::thread() function in class:WebCore::SharedWorkerContext 64 return static_cast<SharedWorkerThread*>(Base::thread());
|
/sdk/emulator/opengl/host/libs/Translator/EGL/ |
ThreadInfo.cpp | 35 __thread ThreadInfo* thread = NULL; variable 38 if(!thread) { 39 thread = new ThreadInfo(); 41 return thread;
|
/system/extras/tests/bionic/libc/other/ |
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);
|
/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/base/synchronization/ |
waitable_event_unittest.cc | 95 PlatformThreadHandle thread; local 96 PlatformThread::Create(0, &signaler, &thread); 100 PlatformThread::Join(thread);
|
/external/chromium/chrome/browser/ui/webui/options/ |
advanced_options_utils_win.cc | 14 #include "base/threading/thread.h" 55 base::Thread* thread = g_browser_process->file_thread(); local 56 DCHECK(thread); 57 thread->message_loop()->PostTask(FROM_HERE, new OpenConnectionDialogTask);
|
/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/linux-tools-perf/util/ |
build-id.c | 28 struct thread *thread = perf_session__findnew(session, event->ip.pid); local 30 if (thread == NULL) { 36 thread__find_addr_map(thread, session, cpumode, MAP__FUNCTION, 49 struct thread *thread = perf_session__findnew(session, event->fork.tid); local 54 if (thread) { 55 rb_erase(&thread->rb_node, &session->threads); 57 thread__delete(thread);
|
/external/v8/test/cctest/ |
test-platform-tls.cc | 11 using v8::internal::Thread; 15 static Thread::LocalStorageKey keys[kValueCount]; 23 CHECK(!Thread::HasThreadLocal(keys[i])); 26 Thread::SetThreadLocal(keys[i], GetValue(i)); 29 CHECK(Thread::HasThreadLocal(keys[i])); 32 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i])); 33 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i])); 36 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1)); 39 CHECK(Thread::HasThreadLocal(keys[i])); 43 Thread::GetThreadLocal(keys[i])) 63 TestThread thread; local [all...] |
/external/webkit/Source/WebKit/chromium/tests/ |
CCThreadTest.cpp | 53 OwnPtr<CCThread> thread = CCThread::create(); local 56 thread->postTask(createCCThreadTask(&target, &PingPongUsingCondition::ping, &completion)); 59 EXPECT_EQ(thread->threadID(), target.hitThreadID); 81 OwnPtr<CCThread> thread = CCThread::create(); local 84 thread->postTask(createCCThreadTask(&target, &PingPongTestUsingTasks::ping));
|
/dalvik/tests/051-thread/src/ |
Main.java | 20 * Test some basic thread stuff. 31 for (MyThread thread : threads) { 32 thread.start(); 34 for (MyThread thread : threads) { 35 thread.join(); 38 System.out.println("Thread count: " + MyThread.mCount); 41 System.out.println("thread test done"); 45 Thread t = new Thread(null, new ThreadTestSub(), "Thready", 7168); 49 System.out.print("Starting thread '" + t.getName() + "'\n") [all...] |