prefix_ bool senf::FileBody::waitReadable(senf::ClockService::clock_type timeout)
const
{
- return pollCheck(fd(), true,
+ return pollCheck(fd(), true,
(timeout==-1?-1:senf::ClockService::in_milliseconds(timeout)) );
}
prefix_ bool senf::FileBody::waitWriteable(senf::ClockService::clock_type timeout)
const
{
- return pollCheck(fd(), false,
+ return pollCheck(fd(), false,
(timeout==-1?-1:senf::ClockService::in_milliseconds(timeout)) );
}
prefix_ bool senf::FileBody::waitOOBReadable(senf::ClockService::clock_type timeout)
const
{
- return pollCheck(fd(), true,
+ return pollCheck(fd(), true,
(timeout==-1?-1:senf::ClockService::in_milliseconds(timeout)), true);
}
prefix_ senf::FileBody & senf::FileHandle::body()
{
- SENF_ASSERT(body_);
+ SENF_ASSERT(body_, "dereferencing in-valid() FileHandle");
return *body_;
}
prefix_ senf::FileBody const & senf::FileHandle::body()
const
{
- SENF_ASSERT(body_);
+ SENF_ASSERT(body_, "dereferencing in-valid() FileHandle");
return *body_;
}