| /external/ltp/testcases/kernel/syscalls/tgkill/ |
| tgkill02.c | 6 * real-time signal. Test this by starting a child thread with SIGRTMIN 8 * SIGRTMIN from the parent thread. 46 pthread_t thread; local 49 SAFE_PTHREAD_CREATE(&thread, NULL, thread_func, &tid); 62 SAFE_PTHREAD_JOIN(thread, NULL);
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/speculative/ |
| 4-1.c | 28 void *thread(void *tmp) function 74 rc = pthread_create(&low_id, NULL, thread, NULL);
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/ |
| 1-1.c | 16 * 2. Create a child thread, the thread lock 'rwlock' for reading, shall not block. 59 pthread_t thread; local 76 printf("main: create thread\n"); 77 if (pthread_create(&thread, NULL, fn_rd, NULL) != 0) { 78 printf("main: failed to create thread\n"); 84 /* We expect the thread not to block */ 91 printf("Test FAILED: thread blocked on read lock\n"); 94 printf("main: Unexpected thread state\n"); 98 if (pthread_join(thread, NULL) != 0) [all...] |
| /external/oj-libjdwp/src/share/classes/com/sun/jdi/event/ |
| MonitorWaitEvent.java | 31 * Notification that a thread in the target VM is about to 45 * Returns the thread in which monitor wait event has occurred. 48 * @return a {@link ThreadReference} which mirrors the event's thread in 51 public ThreadReference thread(); method in interface:MonitorWaitEvent 54 * Returns the monitor object that the thread about to wait. 61 * Returns the number of millisecond the thread will wait.
|
| MonitorWaitedEvent.java | 31 * Notification that a thread in the target VM has finished 45 * Returns the thread in which this event has occurred. 48 * @return a {@link ThreadReference} which mirrors the event's thread in 51 public ThreadReference thread(); method in interface:MonitorWaitedEvent 54 * Returns the monitor object this thread waited on.
|
| /external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/ |
| ThreadAction.java | 43 ThreadAction(ThreadReference thread, int id) { 44 super(thread); 47 ThreadReference thread() { method in class:ThreadAction
|
| /external/python/cpython2/Lib/test/ |
| test_imp.py | 6 import thread 8 thread = None variable 10 @unittest.skipUnless(thread, 'threading not available')
|
| 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 63 thread.get_ident() [all...] |
| /external/tensorflow/tensorflow/core/kernels/data/ |
| unbounded_thread_pool_test.cc | 30 // Create a thread that updates a variable, and ensure that it runs to 33 auto thread = thread_factory->StartThread("", [&i]() { ++i; }); local 34 thread.reset(); 46 std::vector<std::unique_ptr<Thread>> threads; 64 std::vector<std::unique_ptr<Thread>> threads; 85 std::vector<std::unique_ptr<Thread>> threads; 90 std::vector<std::unique_ptr<Thread>> nested_threads; 108 std::vector<std::unique_ptr<Thread>> threads;
|
| /external/testng/src/main/java/org/testng/internal/thread/ |
| FutureResultAdapter.java | 1 package org.testng.internal.thread;
|
| IExecutor.java | 1 package org.testng.internal.thread;
|
| IThreadFactory.java | 1 package org.testng.internal.thread; 12 Thread newThread(Runnable run); 16 List<Thread> getThreads();
|
| /external/testng/src/main/java/org/testng/internal/thread/graph/ |
| IWorker.java | 1 package org.testng.internal.thread.graph;
|
| /external/testng/src/test/java/test/thread/ |
| B.java | 1 package test.thread;
18 Long id = Thread.currentThread().getId();
|
| Helper.java | 1 package test.thread;
|
| ParallelWithFactorySampleTest.java | 1 package test.thread; 31 addId("f1 " + getN(), Thread.currentThread().getId()); 36 addId("f2", Thread.currentThread().getId());
|
| ThreadPoolSampleBugTest.java | 1 package test.thread; 10 Thread.sleep(TIMEOUT); 15 Thread.sleep(TIMEOUT); 20 Thread.sleep(TIMEOUT); 25 Thread.sleep(TIMEOUT);
|
| ThreadTest.java | 1 package test.thread;
|
| /external/vogar/src/vogar/util/ |
| Threads.java | 35 public synchronized Thread newThread(Runnable r) { 36 Thread thread = new Thread(r, name + "-" + (nextId++)); local 37 thread.setDaemon(true); 38 return thread;
|
| /external/webrtc/webrtc/base/ |
| nullsocketserver_unittest.cc | 31 Thread thread; local 32 EXPECT_TRUE(thread.Start()); 33 thread.Post(this, 0);
|
| /cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/ |
| SynchronousPixelCopy.java | 34 HandlerThread thread = new HandlerThread("PixelCopyHelper"); external variable declarations 35 thread.start(); 36 sHandler = new Handler(thread.getLooper());
|
| /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
| MonitorContendedEnterAndEnteredDebuggee.java | 31 BlockedThread thread; field in class:MonitorContendedEnterAndEnteredDebuggee 35 thread = new BlockedThread(logWriter,TESTED_THREAD); 38 logWriter.println("--> Main thread : started"); 45 logWriter.println("main thread: start tested thread"); 46 thread.start(); 48 // wait and hold the lock until the second thread blocks 49 while (!thread.getState().equals(Thread.State.valueOf("BLOCKED"))){ 50 Thread.yield() [all...] |
| /external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
| FileClientSessionCacheTest.java | 39 Thread[] threads = new Thread[10]; 43 threads[i] = new Thread() { 52 for (Thread thread : threads) { 53 thread.start(); 55 for (Thread thread : threads) { 56 thread.join();
|
| /external/guava/guava-tests/test/com/google/common/util/concurrent/ |
| ThreadFactoryBuilderTest.java | 25 import java.lang.Thread.UncaughtExceptionHandler; 44 @Override public void uncaughtException(Thread t, Throwable e) { 58 Thread thread = threadFactory.newThread(monitoredRunnable); local 59 checkThreadPoolName(thread, 1); 61 Thread defaultThread = 63 assertEquals(defaultThread.isDaemon(), thread.isDaemon()); 64 assertEquals(defaultThread.getPriority(), thread.getPriority()); 65 assertSame(defaultThread.getThreadGroup(), thread.getThreadGroup()); 67 thread.getUncaughtExceptionHandler()) 116 Thread thread = factory.newThread(monitoredRunnable); local 122 Thread thread = factory.newThread(monitoredRunnable); local 129 Thread thread = factory.newThread(monitoredRunnable); local 193 Thread thread = builder.setThreadFactory(backingThreadFactory).build() local [all...] |
| /external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
| MoreExecutorsDirectExecutorBenchmark.java | 66 Set<Thread> threads = new HashSet<Thread>(); 71 Thread thread = new Thread() { local 80 threads.add(thread); 85 for (Thread thread : threads) { 86 thread.interrupt(); // try to get them to exit 106 for (Thread thread : threads) [all...] |