| /bionic/tests/ |
| stdio_ext_test.cpp | 230 pthread_t thread; local 232 ASSERT_EQ(0, pthread_create(&thread, nullptr, 237 ASSERT_EQ(0, pthread_join(thread, nullptr));
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/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, ())
|
| /external/compiler-rt/test/tsan/ |
| dl_iterate_phdr.cc | 27 void *thread(void *unused) { function 39 pthread_create(&th, 0, thread, 0);
|
| /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/linux-kselftest/tools/testing/selftests/x86/ |
| sysret_ss_attrs.c | 59 * Start a busy-looping thread on the same CPU we're on. 69 pthread_t thread; local 70 if (pthread_create(&thread, 0, threadproc, 0) != 0)
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/ |
| 2-1.c | 16 * 2. Create a child thread, the thread lock 'rwlock' for reading, shall not block. 58 pthread_t thread; local 69 printf("main: create thread\n"); 70 if (pthread_create(&thread, NULL, fn_rd, NULL) != 0) { 71 printf("main: failed to create thread\n"); 77 /* We expect the thread not to block */ 84 printf("Test FAILED: thread blocked on read lock\n"); 87 printf("main: Unexpected thread state\n"); 91 if (pthread_join(thread, NULL) != 0) [all...] |
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
| 7-1.c | 23 * -> create a thread which blocks on the semaphore 102 pthread_t thread; local 120 /* Create the child thread */ 121 ret = pthread_create(&thread, NULL, threaded, sem); 124 UNRESOLVED(ret, "Failed to create the thread"); 127 /* Let some time for the thread to block */ 144 /* Join the thread */ 145 ret = pthread_join(thread, NULL); 148 UNRESOLVED(ret, "Failed to join the thread");
|
| /external/oj-libjdwp/src/share/classes/com/sun/jdi/ |
| MonitorInfo.java | 29 * Information about a monitor owned by a thread. 42 * frame has become invalid. Once the frame's thread is resumed, 51 * acquired by the owning thread. Returns -1 if the 55 * acquired by the owning thread. 57 * frame has become invalid. Once the frame's thread is resumed, 64 * Returns a {@link ThreadReference} object for the thread that 66 * @return a {@link ThreadReference} object for the thread that 69 * frame has become invalid. Once the frame's thread is resumed, 73 ThreadReference thread(); method in interface:MonitorInfo
|
| /external/oj-libjdwp/src/share/classes/com/sun/jdi/event/ |
| ClassPrepareEvent.java | 45 * Returns the thread in which this event has occurred. 48 * thread within the target VM. Debugger threads take precautions 52 * If the event was generated by a debugger system thread, the 62 * @return a {@link ThreadReference} which mirrors the event's thread in 65 public ThreadReference thread(); method in interface:ClassPrepareEvent
|
| LocatableEvent.java | 34 * and thread. 43 * Returns the thread in which this event has occurred. 45 * @return a {@link ThreadReference} which mirrors the event's thread in 48 public ThreadReference thread(); method in interface:LocatableEvent
|
| MonitorContendedEnterEvent.java | 32 * Notification that a thread in the target VM is attempting 33 * to enter a monitor that is already acquired by another thread. 47 * Returns the thread in which this event has occurred. 50 * @return a {@link ThreadReference} which mirrors the event's thread in 53 public ThreadReference thread(); method in interface:MonitorContendedEnterEvent
|
| MonitorContendedEnteredEvent.java | 32 * Notification that a thread in the target VM is entering a monitor 33 * after waiting for it to be released by another thread. 46 * Returns the thread in which this event has occurred. 49 * @return a {@link ThreadReference} which mirrors the event's thread in 52 public ThreadReference thread(); method in interface:MonitorContendedEnteredEvent
|
| ThreadDeathEvent.java | 31 * Notification of a completed thread in the target VM. The 32 * notification is generated by the dying thread before it terminates. 34 * for {@link VirtualMachine#allThreads} to return this thread 38 * about the lifetime of the thread object. It may or may not be collected 51 * Returns the thread which is terminating. 53 * @return a {@link ThreadReference} which mirrors the event's thread in 56 public ThreadReference thread(); method in interface:ThreadDeathEvent
|
| ThreadStartEvent.java | 31 * Notification of a new running thread in the target VM. 32 * The new thread can be the result of a call to 33 * <code>{@link java.lang.Thread#start}</code> or the result of 34 * attaching a new thread to the VM though JNI. The 35 * notification is generated by the new thread some time before 38 * for the thread before this event is received. (Notably, 40 * during thread initialization.) 42 * a new started thread before this event is received. 45 * about the creation of the thread object which may have happened 58 * Returns the thread which has started 63 public ThreadReference thread(); method in interface:ThreadStartEvent [all...] |
| VMStartEvent.java | 32 * received before the main thread is started and before any 49 * Returns the initial thread of the VM which has started. 51 * @return a {@link ThreadReference} which mirrors the event's thread in 54 public ThreadReference thread(); method in interface:VMStartEvent
|
| /external/python/cpython2/Lib/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, ())
|
| /external/tensorflow/tensorflow/core/lib/core/ |
| threadpool.h | 29 namespace thread { namespace in namespace:tensorflow 35 // given ThreadOptions. If "low_latency_hint" is true the thread pool 72 // ith thread (i>=0). When (i+1)*block_size > total, fn(i*block_size, total) 100 // This is because some work can happen on the caller thread while the threads 103 // The caller can allocate NumThreads() + 1 separate buffers for each thread. 104 // Each thread can safely write to the buffer given by its id without 119 // Returns current thread id between 0 and NumThreads() - 1, if called from a 120 // thread in the pool. Returns -1 otherwise. 130 } // namespace thread
|
| /external/testng/src/main/java/org/testng/internal/thread/ |
| IFutureResult.java | 1 package org.testng.internal.thread;
|
| TestNGThread.java | 1 package org.testng.internal.thread; 4 * Custom named thread. 8 public class TestNGThread extends Thread {
|
| ThreadExecutionException.java | 1 package org.testng.internal.thread;
|
| ThreadTimeoutException.java | 1 package org.testng.internal.thread; 4 * Exception used to signal a thread timeout.
|
| /external/testng/src/main/java/org/testng/internal/thread/graph/ |
| IThreadWorkerFactory.java | 1 package org.testng.internal.thread.graph;
|
| /external/testng/src/test/java/test/thread/ |
| BaseSequentialSample.java | 1 package test.thread;
22 + Thread.currentThread().getId() + " "
|
| Sample2.java | 1 package test.thread; 16 logThread(Thread.currentThread().getId());
|
| SequentialSample2Test.java | 1 package test.thread;
9 addId("SequentialSample2Test.f1()", Thread.currentThread().getId());
13 addId("SequentialSample2Test.f2()", Thread.currentThread().getId());
17 addId("SequentialSample2Test.f3()", Thread.currentThread().getId());
|