| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/ |
| 1-3.c | 9 * shall create a thread with the pthread_attr settings passed to it 13 * 2. Create a thread using this attr 14 * 3. In the thread, check these settings. 31 /* the thread uses this to indicate to main or success */ 33 /* the thread uses this to indicate to main or success */ 36 /* Thread function which checks the scheduler settings for itself */ 37 void *thread(void *tmp) function 85 /* Create the thread with the attr */ 86 rc = pthread_create(&thread_id, &attr, thread, NULL);
|
| 1-4.c | 9 * shall create a thread with the pthread_attr settings passed to it 13 * 2. Create a thread using this attr 14 * 3. In the thread, check these settings. 31 /* the thread uses this to indicate to main or success */ 33 /* the thread uses this to indicate to main or success */ 36 /* Thread function which checks the scheduler settings for itself */ 37 void *thread(void *tmp) function 88 /* Create the thread with the attr */ 89 rc = pthread_create(&thread_id, &attr, thread, NULL); 95 /* Wait for that thread to finish * [all...] |
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
| 1-1.c | 36 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 41 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n", 44 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n", 52 fprintf(stderr, "[Thread 0x%p] was wakened and acquired the mutex " 56 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n", 60 fprintf(stderr, "[Thread 0x%p] released the mutex\n", (void *)self); 67 pthread_t thread[THREAD_NUM]; local 79 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) { 80 fprintf(stderr, "Fail to create thread[%d]\n", i); 102 fprintf(stderr, "[Main thread] broadcast the condition\n") [all...] |
| 2-1.c | 9 * When each thread unblocked as a result of pthread_cond_signal() 10 * returns from its call to pthread_cond_wait(), the thread shall 37 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 41 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n", 45 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n", 54 fprintf(stderr, "[Thread 0x%p] should not be able to lock the " 59 fprintf(stderr, "[Thread 0x%p] was wakened and acquired the " 64 fprintf(stderr, "[Thread 0x%p] failed to release the " 69 fprintf(stderr, "[Thread 0x%p] released the mutex\n", (void *)self); 76 pthread_t thread[THREAD_NUM] local [all...] |
| 2-2.c | 9 * When each thread unblocked as a result of pthread_cond_signal() 10 * returns from its call to pthread_cond_timedwait(), the thread shall 42 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 46 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n", 57 fprintf(stderr, "[Thread 0x%p] is waiting for the cond for at " 61 fprintf(stderr, "[Thread 0x%p] pthread_cond_wait returned %d\n", 67 fprintf(stderr, "[Thread 0x%p] should not be able to lock the " 72 fprintf(stderr, "[Thread 0x%p] was wakened and acquired the " 77 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n", 82 fprintf(stderr, "[Thread 0x%p] released the mutex\n", (void *)self) 89 pthread_t thread[THREAD_NUM]; local [all...] |
| 4-1.c | 36 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 40 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n", 44 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n", 51 fprintf(stderr, "[Thread 0x%p] was wakened\n", (void *)self); 55 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n", 65 pthread_t thread[THREAD_NUM]; local 77 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) { 78 fprintf(stderr, "Fail to create thread[%d]\n", i); 98 fprintf(stderr, "[Main thread] broadcast the condition\n"); 112 fprintf(stderr, "[Main thread] pthread_cond_broadcast() returned 0\n") [all...] |
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
| 1-1.c | 28 pthread_t thread[THREAD_NUM]; variable 39 pthread_cancel(thread[i]); 51 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 56 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n", 59 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n", 68 "[Thread 0x%p] was wakened and acquired the mutex again\n", 72 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n", 76 fprintf(stderr, "[Thread 0x%p] released the mutex\n", (void *)self); 95 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) { 96 fprintf(stderr, "Fail to create thread[%d]\n", i) [all...] |
| 2-1.c | 9 * When each thread unblocked as a result of pthread_cond_signal() 10 * returns from its call to pthread_cond_wait(), the thread shall 29 pthread_t thread[THREAD_NUM]; variable 40 pthread_cancel(thread[i]); 52 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 56 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n", 60 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n", 70 "[Thread 0x%p] should be able to lock the recursive mutex again\n", 76 "[Thread 0x%p] was wakened and acquired the mutex again\n", 81 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n" [all...] |
| 4-1.c | 28 pthread_t thread[THREAD_NUM]; variable 39 pthread_cancel(thread[i]); 51 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n", 55 fprintf(stderr, "[Thread 0x%p] started\n", (void *)self); 58 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n", 65 fprintf(stderr, "[Thread 0x%p] was wakened\n", (void *)self); 69 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n", 91 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) { 92 fprintf(stderr, "Fail to create thread[%d]\n", i); 107 fprintf(stderr, "[Main thread] signals a condition\n") [all...] |
| /external/mesa3d/src/glx/apple/ |
| apple_glx_log.c | 77 uint64_t thread = 0; local 81 thread = (uint64_t)(uintptr_t)pthread_self(); 84 pthread_threadid_np(NULL, &thread); 86 thread = (uint64_t)(uintptr_t)pthread_self(); 89 pthread_threadid_np(NULL, &thread); 98 _asl_level_string(level), file, line, function, thread); 118 asprintf(&_thread, "%"PRIu64, thread); 120 asl_set(msg, "Thread", _thread);
|
| /external/mesa3d/src/intel/vulkan/tests/ |
| state_pool_test_helper.h | 29 pthread_t thread; member in struct:job 66 pthread_create(&jobs[i].thread, NULL, alloc_states, &jobs[i]); 70 pthread_join(jobs[i].thread, NULL);
|
| /external/oj-libjdwp/src/share/back/ |
| standardHandlers.c | 44 jthread thread = evinfo->thread; local 50 * we cannot suspend the debugger thread. 52 * 1) We report the thread as NULL because we don't want the 53 * application to get hold of a debugger thread object. 59 * results by leaving the debugger thread running. However, 68 if (threadControl_isDebugThread(thread)) { 69 evinfo->thread = NULL; 93 * We can't send the frame to the helper thread because it 94 * might be useless by the time the helper thread can use i [all...] |
| /external/oj-libjdwp/src/share/classes/com/sun/jdi/ |
| StackFrame.java | 32 * The state of one method invocation on a thread's call stack. 33 * As a thread executes, stack frames are pushed and popped from 36 * thread's execution. The call stack is, then, simply a List of 37 * StackFrame objects. The call stack can be obtained any time a thread 44 * for suspended threads and becomes invalid once its thread is resumed. 78 * invalid. Once the frame's thread is resumed, the stack frame is 84 * Returns the thread under which this frame's method is running. 86 * @return a {@link ThreadReference} which mirrors the frame's thread. 88 * invalid. Once the frame's thread is resumed, the stack frame is 91 ThreadReference thread(); method in interface:StackFrame [all...] |
| /external/oj-libjdwp/src/share/classes/com/sun/jdi/request/ |
| StepRequest.java | 62 * @return the thread on which the step event is being requested. 64 ThreadReference thread(); method in interface:StepRequest
|
| /external/opencensus-java/contrib/agent/src/test/java/io/opencensus/contrib/agent/bootstrap/ |
| ContextTrampolineTest.java | 44 @Mock private Thread thread; field in class:ContextTrampolineTest 62 ContextTrampoline.saveContextForThread(thread); 64 Mockito.verify(mockContextStrategy).saveContextForThread(thread); 69 ContextTrampoline.attachContextForThread(thread); 71 Mockito.verify(mockContextStrategy).attachContextForThread(thread);
|
| /external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/internal/ |
| DaemonThreadFactory.java | 23 /** A {@link ThreadFactory} implementation that starts all {@link Thread} as daemons. */ 38 * @param threadPrefix used to prefix all thread names. (E.g. "CensusDisruptor"). 45 public Thread newThread(Runnable r) { 46 Thread thread = threadFactory.newThread(r); local 48 thread.setName(threadPrefix + threadIdGen.getAndIncrement()); 49 thread.setDaemon(true); 51 return thread;
|
| /external/perfetto/src/base/ |
| thread_checker_unittest.cc | 35 pthread_t thread; local 39 EXPECT_EQ(0, pthread_create(&thread, nullptr, thread_main, &closure)); 41 EXPECT_EQ(0, pthread_join(thread, &retval));
|
| /external/strace/tests/ |
| attach-f-p.c | 57 thread(void *a) function 82 errno = pthread_create(&t[i], NULL, thread, (void *) (long) i);
|
| count-f.c | 44 thread(void *arg) function 64 errno = pthread_create(&t[i], NULL, thread, NULL);
|
| filter-unavailable.c | 39 thread(void *arg) function 60 assert(pthread_create(&t, NULL, thread, NULL) == 0);
|
| /external/strace/tests-m32/ |
| attach-f-p.c | 57 thread(void *a) function 82 errno = pthread_create(&t[i], NULL, thread, (void *) (long) i);
|
| count-f.c | 44 thread(void *arg) function 64 errno = pthread_create(&t[i], NULL, thread, NULL);
|
| filter-unavailable.c | 39 thread(void *arg) function 60 assert(pthread_create(&t, NULL, thread, NULL) == 0);
|
| /external/strace/tests-mx32/ |
| attach-f-p.c | 57 thread(void *a) function 82 errno = pthread_create(&t[i], NULL, thread, (void *) (long) i);
|
| count-f.c | 44 thread(void *arg) function 64 errno = pthread_create(&t[i], NULL, thread, NULL);
|