|
blocxx
|
A timeout can be absolute, which means that it will happen at the specified DateTime. More...
#include <Timeout.hpp>
Public Types | |
| enum | ETimeoutType { E_ABSOLUTE, E_RELATIVE, E_RELATIVE_WITH_RESET } |
Public Member Functions | |
| ETimeoutType | getType () const |
| DateTime | getAbsolute () const |
| float | getRelative () const |
Static Public Member Functions | |
| static Timeout | absolute (const DateTime &dt) |
| static Timeout | relative (float seconds) |
| static Timeout | relativeWithReset (float seconds) |
Static Public Attributes | |
| static Timeout | infinite = relative( std::numeric_limits<float>::infinity() ) |
Private Member Functions | |
| Timeout () | |
| Timeout (ETimeoutType type, const DateTime &dt) | |
| Timeout (ETimeoutType type, float seconds) | |
Private Attributes | |
| ETimeoutType | m_type |
| DateTime | m_absolute |
| float | m_seconds |
A timeout can be absolute, which means that it will happen at the specified DateTime.
A timeout can be relative, which means that it will happen at the specified interval after the call is made. A timeout can be relative with reset, which means that it will happen at the specified interval after "no activity" has occurred. "no activity" is dependent on the operation. A timeout can be infinite.
Definition at line 85 of file Timeout.hpp.
| Enumerator | |
|---|---|
| E_ABSOLUTE | |
| E_RELATIVE | |
| E_RELATIVE_WITH_RESET | |
Definition at line 124 of file Timeout.hpp.
|
private |
Definition at line 123 of file Timeout.cpp.
|
private |
Definition at line 127 of file Timeout.cpp.
|
private |
Definition at line 133 of file Timeout.cpp.
Definition at line 80 of file Timeout.cpp.
References m_absolute.
| DateTime BLOCXX_NAMESPACE::Timeout::getAbsolute | ( | ) | const |
Definition at line 112 of file Timeout.cpp.
Referenced by BLOCXX_NAMESPACE::TimeoutTimer::asIntMs().
| float BLOCXX_NAMESPACE::Timeout::getRelative | ( | ) | const |
Definition at line 118 of file Timeout.cpp.
| Timeout::ETimeoutType BLOCXX_NAMESPACE::Timeout::getType | ( | ) | const |
Definition at line 106 of file Timeout.cpp.
|
static |
Definition at line 88 of file Timeout.cpp.
References m_seconds.
Referenced by BLOCXX_NAMESPACE::Process::err(), BLOCXX_NAMESPACE::RWLocker::getReadLock(), BLOCXX_NAMESPACE::Process::Process(), BLOCXX_NAMESPACE::ReadLock::ReadLock(), BLOCXX_NAMESPACE::Socket::setReceiveTimeout(), BLOCXX_NAMESPACE::Socket::setSendTimeout(), BLOCXX_NAMESPACE::PosixExec::spawnImpl(), and BLOCXX_NAMESPACE::Socket::write().
|
static |
Definition at line 96 of file Timeout.cpp.
|
static |
Definition at line 122 of file Timeout.hpp.
|
private |
Definition at line 142 of file Timeout.hpp.
Referenced by absolute().
|
private |
Definition at line 143 of file Timeout.hpp.
Referenced by relative().
|
private |
Definition at line 141 of file Timeout.hpp.
1.8.18