/external/valgrind/drd/tests/ |
dlopen_lib.c | 10 printf("Hello World! It's me, thread #%ld!\n", tid); 17 pthread_t thread; local 21 printf("In main: creating thread %ld\n", t); 22 rc = pthread_create(&thread, NULL, PrintHello, (void *)t); 26 pthread_join(thread, NULL);
|
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/valgrind/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/none/tests/s390x/ |
ex_clone.c | 13 pthread_t thread; variable 42 pthread_create(&thread, NULL, threadfunc, NULL); 57 pthread_join(thread, NULL);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_threaded_import.py | 10 thread = import_module('thread') variable 12 critical_section = thread.allocate_lock() 13 done = thread.allocate_lock() 22 # thread can exit and set critical_section to None as part of global 45 # Tricky: When regrtest imports this module, the thread running regrtest 67 thread.start_new_thread(task, ())
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_threaded_import.py | 10 thread = import_module('thread') variable 12 critical_section = thread.allocate_lock() 13 done = thread.allocate_lock() 22 # thread can exit and set critical_section to None as part of global 45 # Tricky: When regrtest imports this module, the thread running regrtest 67 thread.start_new_thread(task, ())
|
/prebuilts/go/darwin-x86/misc/cgo/test/ |
sigprocmask.c | 31 pthread_t thread; local 34 r = pthread_create(&thread, NULL, &sigthreadfunc, NULL); 37 return pthread_join(thread, NULL);
|
/prebuilts/go/linux-x86/misc/cgo/test/ |
sigprocmask.c | 31 pthread_t thread; local 34 r = pthread_create(&thread, NULL, &sigthreadfunc, NULL); 37 return pthread_join(thread, NULL);
|
/prebuilts/misc/windows/sdl2/test/ |
testthread.c | 36 SDL_TLSSet(tls, "baby thread", NULL); 37 SDL_Log("Started thread %s: My thread id is %lu, thread data = %s\n", 40 SDL_Log("Thread '%s' is alive!\n", (char *) data); 43 SDL_Log("Thread '%s' exiting!\n", (char *) data); 59 SDL_Thread *thread; local 72 SDL_TLSSet(tls, "main thread", NULL); 73 SDL_Log("Main thread data initially: %s\n", (const char *)SDL_TLSGet(tls)); 76 thread = SDL_CreateThread(ThreadFunc, "One", "#1") [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_threaded_import.py | 10 thread = import_module('thread') variable 12 critical_section = thread.allocate_lock() 13 done = thread.allocate_lock() 22 # thread can exit and set critical_section to None as part of global 45 # Tricky: When regrtest imports this module, the thread running regrtest 67 thread.start_new_thread(task, ())
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_threaded_import.py | 10 thread = import_module('thread') variable 12 critical_section = thread.allocate_lock() 13 done = thread.allocate_lock() 22 # thread can exit and set critical_section to None as part of global 45 # Tricky: When regrtest imports this module, the thread running regrtest 67 thread.start_new_thread(task, ())
|
/system/extras/simpleperf/runtest/ |
function_pthread.cpp | 21 pthread_t thread; local 22 int ret = pthread_create(&thread, nullptr, ChildThreadFunction, nullptr); 28 ret = pthread_join(thread, nullptr);
|
/external/conscrypt/openjdk/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();
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
SurfaceTextureHelper.java | 58 * made on a dedicated thread with a bound EGLContext. The thread will be the same throughout the 59 * lifetime of the SurfaceTextureHelper instance, but different from the thread calling the 61 * on the calling thread. 74 * |handler| is non-null, the callback will be executed on that handler's thread. If |handler| is 75 * null, a dedicated private thread is created for the callbacks. 83 final HandlerThread thread = new HandlerThread(TAG); local 84 thread.start(); 85 finalHandler = new Handler(thread.getLooper()); 87 // The onFrameAvailable() callback will be executed on the SurfaceTexture ctor thread. See [all...] |
/packages/apps/Camera2/src/com/android/camera/async/ |
HandlerFactory.java | 27 * @param lifetime The lifetime of the associated handler's thread. 28 * @param threadName The name to assign to the created thread. 29 * @return A handler backed by a new thread. 32 final HandlerThread thread = new HandlerThread(threadName); local 33 thread.start(); 38 thread.quitSafely(); 42 return new Handler(thread.getLooper()); 46 * @param lifetime The lifetime of the associated handler's thread. 47 * @param threadName The name to assign to the created thread. 48 * @param javaThreadPriority The Java thread priority to use for this thread 52 final HandlerThread thread = new HandlerThread(threadName); local [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/manageduser/ |
ManagedUserCreationListener.java | 39 Thread thread = new Thread(() -> { local 43 thread.setPriority(Thread.MAX_PRIORITY); 44 thread.start();
|
/art/openjdkjvmti/ |
ti_dump.cc | 41 #include "thread-current-inl.h" 48 art::Thread* thread = art::Thread::Current(); local 49 art::ScopedThreadSuspension sts(thread, art::ThreadState::kNative); 50 event_handler->DispatchEvent<ArtJvmtiEvent::kDataDumpRequest>(art::Thread::Current()); 60 art::ScopedThreadStateChange stsc(art::Thread::Current(), 67 art::ScopedThreadStateChange stsc(art::Thread::Current(),
|
/bionic/libc/bionic/ |
__cxa_thread_atexit_impl.cpp | 42 pthread_internal_t* thread = __get_thread(); local 43 dtor->next = thread->thread_local_dtors; 44 thread->thread_local_dtors = dtor; 52 pthread_internal_t* thread = __get_thread(); local 53 while (thread->thread_local_dtors != nullptr) { 54 thread_local_dtor* current = thread->thread_local_dtors; 55 thread->thread_local_dtors = current->next;
|
pthread_exit.cpp | 46 * and thread cancelation 51 pthread_internal_t* thread = __get_thread(); local 54 c->__cleanup_prev = thread->cleanup_stack; 55 thread->cleanup_stack = c; 60 pthread_internal_t* thread = __get_thread(); local 61 thread->cleanup_stack = c->__cleanup_prev; 67 static void __pthread_unmap_tls(pthread_internal_t* thread) { 69 void* allocation = reinterpret_cast<char*>(thread->bionic_tls) - PTHREAD_GUARD_SIZE; 78 pthread_internal_t* thread = __get_thread(); local 79 thread->return_value = return_value [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;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
fork_wait.py | 5 We want fork1() semantics -- only the forking thread survives in the
17 thread = test_support.import_module('thread')
variable 51 thread.start_new(self.f, (i,))
|
test_threadsignals.py | 8 thread = import_module('thread')
variable 14 signalled_all=thread.allocate_lock()
28 signal_blackboard[sig]['tripped_by'] = thread.get_ident()
30 # a function that will be spawned as a separate thread.
38 We spawn a thread, have the thread send two signals, and
40 and that they were run by the main thread.
49 # (it might even be after the thread exits
61 thread.get_ident()) [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/Posix/ |
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...] |