MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / getPollTimeout

Method getPollTimeout

src/Connection.cpp:974–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972}
973
974int IConnection::PollData::getPollTimeout() const
975{
976 const auto relativeTimeout = getRelativeTimeout();
977
978 if (relativeTimeout == decltype(relativeTimeout)::max())
979 return -1;
980
981 return static_cast<int>(std::chrono::ceil<std::chrono::milliseconds>(relativeTimeout).count());
982}
983
984} // namespace sdbus
985

Callers 2

waitForNextEventMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64