Home
last modified time | relevance | path

Searched refs:thread1 (Results 1 – 25 of 122) sorted by relevance

12345

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java52 private TestThread<Monitor> thread1; field in MonitorTestCase
63 tearDownStack.addTearDown(thread1 = new TestThread<>(monitor, "TestThread #1")); in setUp()
101 thread1.callAndAssertReturns(enter()); in testMutualExclusion()
103 thread1.callAndAssertReturns(leave()); in testMutualExclusion()
108 thread1.callAndAssertReturns(true, tryEnter()); in testTryEnter()
110 thread1.callAndAssertReturns(true, tryEnter()); in testTryEnter()
112 thread1.callAndAssertReturns(leave()); in testTryEnter()
114 thread1.callAndAssertReturns(leave()); in testTryEnter()
120 thread1.callAndAssertReturns(enter()); in testSystemStateMethods()
122 thread1.callAndAssertReturns(enter()); in testSystemStateMethods()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java52 private TestThread<Monitor> thread1; field in MonitorTestCase
63 tearDownStack.addTearDown(thread1 = new TestThread<>(monitor, "TestThread #1")); in setUp()
101 thread1.callAndAssertReturns(enter()); in testMutualExclusion()
103 thread1.callAndAssertReturns(leave()); in testMutualExclusion()
108 thread1.callAndAssertReturns(true, tryEnter()); in testTryEnter()
110 thread1.callAndAssertReturns(true, tryEnter()); in testTryEnter()
112 thread1.callAndAssertReturns(leave()); in testTryEnter()
114 thread1.callAndAssertReturns(leave()); in testTryEnter()
120 thread1.callAndAssertReturns(enter()); in testSystemStateMethods()
122 thread1.callAndAssertReturns(enter()); in testSystemStateMethods()
[all …]
/external/webrtc/rtc_base/
Dplatform_thread_unittest.cc41 PlatformThread thread1; in TEST() local
42 PlatformThread thread2 = std::move(thread1); in TEST()
43 EXPECT_TRUE(thread1.empty()); in TEST()
48 PlatformThread thread1 = PlatformThread::SpawnJoinable([] {}, "1"); in TEST() local
49 PlatformThread thread2 = std::move(thread1); in TEST()
50 EXPECT_TRUE(thread1.empty()); in TEST()
53 thread1 = PlatformThread::SpawnDetached([&] { done.Set(); }, "2"); in TEST()
54 thread2 = std::move(thread1); in TEST()
55 EXPECT_TRUE(thread1.empty()); in TEST()
62 PlatformThread thread1 = PlatformThread(); in TEST() local
[all …]
Dthread_unittest.cc301 auto thread1 = Thread::CreateWithSocketServer(); in TEST() local
304 thread1->PostTask( in TEST()
305 [&]() { EXPECT_TRUE(thread1->IsInvokeToThreadAllowed(thread2.get())); }); in TEST()
312 auto thread1 = Thread::CreateWithSocketServer(); in TEST() local
317 thread1->AllowInvokesToThread(thread2.get()); in TEST()
318 thread1->AllowInvokesToThread(thread3.get()); in TEST()
320 thread1->PostTask([&]() { in TEST()
321 EXPECT_TRUE(thread1->IsInvokeToThreadAllowed(thread2.get())); in TEST()
322 EXPECT_TRUE(thread1->IsInvokeToThreadAllowed(thread3.get())); in TEST()
323 EXPECT_FALSE(thread1->IsInvokeToThreadAllowed(thread4.get())); in TEST()
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/
DFileUtilsWaitForTest.java49 final Thread thread1 = new Thread(() -> { in testWaitForInterrupted() local
54 thread1.start(); in testWaitForInterrupted()
57 thread1.interrupt(); in testWaitForInterrupted()
59 thread1.join(); in testWaitForInterrupted()
/external/perfetto/src/tracing/test/
Dplatform_unittest.cc70 auto thread1 = platform->CreateTaskRunner(tr_args); in TEST() local
71 ASSERT_TRUE(thread1); in TEST()
78 thread1->PostTask([] { GetTLS()->generation = 101; }); in TEST()
87 thread1->PostTask([&] { in TEST()
111 thread1.reset(); in TEST()
/external/libchrome/base/
Ddeferred_sequenced_task_runner_unittest.cc119 Thread thread1("DeferredSequencedTaskRunnerTestThread1"); in TEST_F() local
121 thread1.Start(); in TEST_F()
124 thread1.task_runner()->PostTask( in TEST_F()
131 thread1.task_runner()->PostTask( in TEST_F()
184 Thread thread1("DeferredSequencedTaskRunnerTestThread1"); in TEST_F() local
185 thread1.Start(); in TEST_F()
188 thread1.task_runner()->PostTask( in TEST_F()
Dtools_sanity_unittest.cc300 TOOLS_SANITY_TEST_CONCURRENT_THREAD thread1(shared), thread2(shared); in DataRace() local
301 RunInParallel(&thread1, &thread2); in DataRace()
322 TOOLS_SANITY_TEST_CONCURRENT_THREAD thread1(&shared), thread2(&shared); in TEST() local
323 RunInParallel(&thread1, &thread2); in TEST()
329 ReleaseStoreThread thread1(&shared); in TEST() local
331 RunInParallel(&thread1, &thread2); in TEST()
/external/elfutils/tests/
Ddwfl-proc-attach.c44 static pthread_t thread1; variable
80 if ((err = pthread_create (&thread1, NULL, sleeper, NULL)) != 0) in main()
102 pthread_cancel (thread1); in main()
104 pthread_join (thread1, NULL); in main()
/external/cronet/stable/base/task/
Ddeferred_sequenced_task_runner_unittest.cc132 Thread thread1("DeferredSequencedTaskRunnerTestThread1"); in TEST_F() local
134 thread1.Start(); in TEST_F()
137 thread1.task_runner()->PostTask( in TEST_F()
147 thread1.task_runner()->PostTask( in TEST_F()
203 Thread thread1("DeferredSequencedTaskRunnerTestThread1"); in TEST_F() local
204 thread1.Start(); in TEST_F()
207 thread1.task_runner()->PostTask( in TEST_F()
/external/cronet/tot/base/task/
Ddeferred_sequenced_task_runner_unittest.cc132 Thread thread1("DeferredSequencedTaskRunnerTestThread1"); in TEST_F() local
134 thread1.Start(); in TEST_F()
137 thread1.task_runner()->PostTask( in TEST_F()
147 thread1.task_runner()->PostTask( in TEST_F()
203 Thread thread1("DeferredSequencedTaskRunnerTestThread1"); in TEST_F() local
204 thread1.Start(); in TEST_F()
207 thread1.task_runner()->PostTask( in TEST_F()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
D3-1.c25 static pthread_t thread1; variable
34 pthread_cancel(thread1); in alarm_handler()
91 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
113 pthread_join(thread1, NULL); in main()
D1-1.c26 static pthread_t thread1; variable
35 pthread_cancel(thread1); in alarm_handler()
81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
113 pthread_join(thread1, NULL); in main()
D2-1.c26 static pthread_t thread1; variable
35 pthread_cancel(thread1); in alarm_handler()
94 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
126 pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/
D3-2.c33 static pthread_t thread1; variable
74 if (pthread_create(&thread1, NULL, a_thread_func, NULL) != 0) { in main()
80 pthread_join(thread1, NULL); in main()
/external/libyuv/unit_test/
Dcpu_thread_test.cc45 pthread_t thread1; in TEST() local
49 ret = pthread_create(&thread1, nullptr, ThreadMain, &cpu_flags1); in TEST()
53 ret = pthread_join(thread1, nullptr); in TEST()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D4-1.c68 pthread_t thread1; in main() local
80 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
87 pthread_join(thread1, &th_ret); in main()
D2-3.c70 pthread_t thread1; in main() local
83 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
93 if (pthread_join(thread1, (void *)&th_ret) != 0) { in main()
D2-2.c79 pthread_t thread1; in main() local
92 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
115 if (pthread_join(thread1, &th_ret) != 0) { in main()
D3-1.c85 pthread_t thread1; in main() local
97 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
122 pthread_join(thread1, NULL); in main()
/external/sdv/vsomeip/third_party/boost/thread/test/
Dtest_7571.cpp65 boost::thread thread1(threadFunc, 1, boost::ref(exceptionOccurred1)); in main() local
74 if (!thread1.timed_join(timeout)) { in main()
76 thread1.interrupt(); in main()
/external/webrtc/rtc_tools/
Dsanitizers_unittest.cc107 IncrementThread thread1(&value); in DataRace() local
109 thread1.Start(); in DataRace()
111 thread1.Join(); in DataRace()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D2-1.c90 pthread_t thread1; in main() local
108 if (pthread_create(&thread1, NULL, fn_rd, NULL) != 0) { in main()
143 if (pthread_join(thread1, NULL) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D2-1.c95 pthread_t thread1; in main() local
112 if (pthread_create(&thread1, NULL, fn, NULL) != 0) { in main()
151 if (pthread_join(thread1, NULL) != 0) { in main()
/external/tensorflow/tensorflow/core/profiler/convert/
Dxplane_to_trace_events_test.cc32 XLineBuilder thread1 = host_plane.GetOrCreateLine(10); in CreateXSpace() local
33 thread1.SetName("thread1"); in CreateXSpace()
35 thread1.AddEvent(*host_plane.GetOrCreateEventMetadata("event1")); in CreateXSpace()

12345