Home
last modified time | relevance | path

Searched refs:TestThread (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_thread_test.cpp90 TestThread() = delete;
91 ~TestThread() {} in ~TestThread()
106 bool TestThread::ReadyToWork() in ReadyToWork()
111 bool TestThread::Run() in Run()
132 std::unique_ptr<TestThread> test = std::make_unique<TestThread>(0, false, TestRun01);
160 std::unique_ptr<TestThread> test = std::make_unique<TestThread>(0, true, TestRun01);
188 std::unique_ptr<TestThread> test = std::make_unique<TestThread>(0, false, TestRun02);
215 std::unique_ptr<TestThread> test = std::make_unique<TestThread>(0, true, TestRun02);
243 std::unique_ptr<TestThread> test = std::make_unique<TestThread>(0, false, TestRun03);
270 std::unique_ptr<TestThread> test = std::make_unique<TestThread>(0, true, TestRun03);
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/thread_benchmark_test/
H A Dthread_benchmark_test.cpp91 class TestThread : public OHOS::Thread { class
101 TestThread() = delete;
102 ~TestThread() {} in ~TestThread()
118 bool TestThread::ReadyToWork() in ReadyToWork()
124 bool TestThread::Run() in Run()
149 …std::unique_ptr<TestThread> test = std::make_unique<TestThread>(INITIAL_TEST_VALUE, false, TestRun… in BENCHMARK_F()
189 …std::unique_ptr<TestThread> test = std::make_unique<TestThread>(INITIAL_TEST_VALUE, true, TestRun0… in BENCHMARK_F()
253 …std::unique_ptr<TestThread> test = std::make_unique<TestThread>(INITIAL_TEST_VALUE, false, TestRun… in BENCHMARK_F()
273 …std::unique_ptr<TestThread> test = std::make_unique<TestThread>(INITIAL_TEST_VALUE, true, TestRun0… in BENCHMARK_F()
333 …std::unique_ptr<TestThread> test = std::make_unique<TestThread>(INITIAL_TEST_VALUE, true, TestRun0… in BENCHMARK_F()
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/thread_fuzzer/
H A Dthread_fuzzer.cpp42 class TestThread : public OHOS::Thread { class
44 TestThread(const int data, const bool readyToWork, int priority, ThreadRunFunc runFunc) in TestThread() function in OHOS::TestThread
48 TestThread() = delete;
49 ~TestThread() {} in ~TestThread()
64 bool TestThread::ReadyToWork() in ReadyToWork()
69 bool TestThread::Run() in Run()
87 auto t = std::make_unique<TestThread>(0, readyToWork, priority, TestRun); in ThreadTestFunc()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/signal_handler/
H A Dsignal_handler_test.cpp121 int TestThread(int threadId, int sig) in TestThread() function
229 std::thread (TestThread, 1, SIGILL).join(); // 1 : first thread
230 std::thread (TestThread, 2, SIGILL).join(); // 2 : second thread
252 std::thread (TestThread, 1, SIGBUS).join(); // 1 : first thread
253 std::thread (TestThread, 2, SIGBUS).join(); // 2 : second thread
275 std::thread (TestThread, 1, SIGSEGV).join(); // 1 : first thread
276 std::thread (TestThread, 2, SIGSEGV).join(); // 2 : second thread
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dstring_utils_test.cpp82 void TestThread(int* num, int threadNum, Lock* lock) in TestThread() function
104 TestThread(&num, threadNum, &lock);
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dstring_utils_test.cpp81 void TestThread(int* num, int threadNum, Lock* lock) in TestThread() function
103 TestThread(&num, threadNum, &lock);