Home
last modified time | relevance | path

Searched refs:GetFd (Results 1 - 6 of 6) sorted by relevance

/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/
H A Devent_benchmark_test.cpp108 AssertEqual(handler->GetFd(), fd, "handler->GetFd() did not equal fd as expected.", state); in SetFdAndCallback()
358 if ((GetFd() == INVALID_FD)) { in Initialize()
380 if (timerfd_settime(GetFd(), TFD_TIMER_ABSTIME, &newValue, nullptr) == INVALID_FD) { in Initialize()
381 BENCHMARK_LOGD("Set timerFd failed-%{public}s timer_fd:%{public}d", strerror(errno), GetFd()); in Initialize()
400 if (GetFd() == INVALID_FD) { in TimeOut()
405 ssize_t n = ::read(GetFd(), &expirations, sizeof(expirations)); in TimeOut()
701 inline int GetTimerFd() const { return handler_->GetFd(); } in GetTimerFd()
961 if (close(handler_->GetFd()) != 0) { in ~TimerEventHandler()
963 gettid(), handler_->GetFd(), interval in ~TimerEventHandler()
[all...]
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_event_test.cpp91 EXPECT_EQ(handler->GetFd(), fd); in HWTEST_F()
134 EXPECT_EQ(handler->GetFd(), fd); in HWTEST_F()
256 if ((GetFd() == -1)) { in Initialize()
278 if (timerfd_settime(GetFd(), TFD_TIMER_ABSTIME, &newValue, nullptr) == -1) { in Initialize()
279 std::cout << "Set timerFd failed-" << strerror(errno) << "timer_fd:" << GetFd() << ", next_time:" << in Initialize()
297 if (GetFd() == -1) { in TimeOut()
302 ssize_t n = ::read(GetFd(), &expirations, sizeof(expirations)); in TimeOut()
568 inline int GetTimerFd() const { return handler_->GetFd(); } in GetTimerFd()
818 if (close(handler_->GetFd()) != 0) { in ~TimerEventHandler()
819 std::cout << "||" << gettid() << "||" << "Close timer-fd failed. fd:" << handler_->GetFd() << ", interva in ~TimerEventHandler()
[all...]
H A Dutils_mapped_file_test.cpp868 ASSERT_EQ(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0); in HWTEST_F()
900 ASSERT_EQ(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0); in HWTEST_F()
/commonlibrary/c_utils/base/include/
H A Dio_event_handler.h55 inline int GetFd() const in GetFd() function in OHOS::Utils::IOEventHandler
H A Dmapped_file.h136 inline int GetFd() const in GetFd() function in OHOS::Utils::MapMode::MappedFile
/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/
H A Dmapped_benchmark_test.cpp903 AssertEqual(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0, in BENCHMARK_F()
904 "ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); in BENCHMARK_F()
942 AssertEqual(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0, in BENCHMARK_F()
943 "ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); in BENCHMARK_F()

Completed in 13 milliseconds