/external/bluetooth/bluedroid/osi/test/ |
thread_test.cpp | 4 #include "thread.h" 9 thread_t *thread = thread_new("test_thread"); local 10 ASSERT_TRUE(thread != NULL); 11 thread_free(thread); 15 thread_t *thread = thread_new("test_thread"); local 16 thread_free(thread); 20 thread_t *thread = thread_new("test_name"); local 21 ASSERT_STREQ(thread_name(thread), "test_name"); 22 thread_free(thread); 26 thread_t *thread = thread_new("0123456789abcdef") local 32 thread_t *thread = thread_new("0123456789abcdefg"); local [all...] |
/external/compiler-rt/test/tsan/ |
bench_acquire_only.cc | 8 void thread(int tid) { function 15 start_thread_group(bench_nthread, thread);
|
bench_acquire_release.cc | 8 void thread(int tid) { function 14 start_thread_group(bench_nthread, thread);
|
bench_local_mutex.cc | 9 void thread(int tid) { function 23 start_thread_group(bench_nthread, thread);
|
bench_release_only.cc | 9 void thread(int tid) { function 19 start_thread_group(bench_nthread, thread);
|
bench_rwmutex.cc | 8 void thread(int tid) { function 21 start_thread_group(bench_nthread, thread);
|
bench_single_writer.cc | 8 void thread(int tid) { function 19 start_thread_group(bench_nthread, thread);
|
bench_mutex.cc | 10 void thread(int tid) { function 24 start_thread_group(2, thread);
|
bench_ten_mutexes.cc | 9 void thread(int tid) { function 22 start_thread_group(2, thread);
|
/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 + 8);
|
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. */ 48 /* Invoke pthread_cancel() with an invalid thread ID. */
|
/external/qemu/distrib/sdl-1.2.15/test/ |
testerror.c | 22 /* Set the child thread error string */ 23 SDL_SetError("Thread %s (%d) had a problem: %s", 26 printf("Thread '%s' is alive!\n", (char *)data); 29 printf("Child thread error string: %s\n", SDL_GetError()); 35 SDL_Thread *thread; local 43 /* Set the error value for the main thread */ 47 thread = SDL_CreateThread(ThreadFunc, "#1"); 48 if ( thread == NULL ) { 49 fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError()); 53 printf("Waiting for thread #1\n") [all...] |
testhread.c | 22 printf("Started thread %s: My thread id is %u\n", 25 printf("Thread '%s' is alive!\n", (char *)data); 28 printf("Thread '%s' exiting!\n", (char *)data); 42 SDL_Thread *thread; local 51 thread = SDL_CreateThread(ThreadFunc, "#1"); 52 if ( thread == NULL ) { 53 fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError()); 57 printf("Waiting for thread #1\n"); 59 SDL_WaitThread(thread, NULL) [all...] |
/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
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
LoadLocaleProviderTestHelper.java | 29 Thread thread = new Thread(this); local 30 thread.setContextClassLoader(loader); 31 thread.start(); 32 thread.join();
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldInheritableThreadLocalTest.java | 38 Thread thread = new Thread() { local 43 thread.start(); 44 thread.join();
|
/external/bison/lib/glthread/ |
threadlib.c | 32 /* The function to be executed by a dummy thread. */ 47 pthread_t thread; local 49 if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) 50 /* Thread creation failed. */ 54 /* Thread creation works. */ 56 if (pthread_join (thread, &retval) != 0)
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
pthread_key_delete.c | 5 * POSIX thread functions which implement thread-specific data (TSD). 46 * This function deletes a thread-specific data key. This 47 * does not change the value of the thread specific data key 48 * for any thread and does not run the key's destructor 49 * in any thread so it should be used with caution. 57 * This function deletes a thread-specific data key. This 58 * does not change the value of the thread specific data key 59 * for any thread and does not run the key's destructor 60 * in any thread so it should be used with caution 89 ptw32_thread_t * thread = assoc->thread; local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/login/ |
login_main.cc | 32 #include "talk/base/thread.h" 47 // Start xmpp on a different thread 48 buzz::XmppThread thread; local 49 thread.Start(); 58 thread.Login(xcs); 60 // Use main thread for console input
|
/external/deqp/framework/delibs/destream/ |
deStreamCpyThread.h | 23 * \brief Stream copying thread 36 deThread thread; member in struct:deStreamCpyThread_s 41 void deStreamCpyThread_destroy (deStreamCpyThread* thread); 43 void deStreamCpyThread_join (deStreamCpyThread* thread);
|
/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/smack/src/org/jivesoftware/smack/filter/ |
ThreadFilter.java | 27 * Filters for message packets with a particular thread value. 33 private String thread; field in class:ThreadFilter 36 * Creates a new thread filter using the specified thread value. 38 * @param thread the thread value to filter for. 40 public ThreadFilter(String thread) { 41 if (thread == null) { 42 throw new IllegalArgumentException("Thread cannot be null."); 44 this.thread = thread [all...] |