#include <Conditional.h>
Classes | |
| class | attribute |
Public Member Functions | |
| Conditional () | |
| virtual | ~Conditional () |
| void | signal (bool broadcast=false) |
| void | wait () |
| bool | wait (size_t timeout) |
| bool | wait (struct timespec *ts) |
Static Protected Member Functions | |
| static void | gettimeout (size_t timeout, struct timespec *hires) |
Definition at line 11 of file Conditional.h.
| ibrcommon::Conditional::Conditional | ( | ) |
Definition at line 8 of file Conditional.cpp.
| ibrcommon::Conditional::~Conditional | ( | ) | [virtual] |
Definition at line 13 of file Conditional.cpp.
References signal().
| void ibrcommon::Conditional::gettimeout | ( | size_t | timeout, | |
| struct timespec * | hires | |||
| ) | [static, protected] |
Convert a millisecond timeout into use for high resolution conditional timers.
| timeout | to convert. | |
| hires | timespec representation to fill. |
Definition at line 56 of file Conditional.cpp.
Referenced by wait().
| void ibrcommon::Conditional::signal | ( | bool | broadcast = false |
) |
Definition at line 19 of file Conditional.cpp.
Referenced by dtn::api::Client::close(), dtn::api::Client::eventConnectionDown(), dtn::api::Client::eventConnectionUp(), dtn::api::Client::eventError(), dtn::api::Client::eventShutdown(), dtn::api::Client::eventTimeout(), ibrcommon::WaitForConditional::go(), dtn::routing::NeighborRoutingExtension::notify(), ibrcommon::AtomicCounter::operator++(), ibrcommon::AtomicCounter::operator--(), ibrcommon::SimpleTimer::remove(), ibrcommon::MultiTimer::removeAll(), ibrcommon::StatefulConditional< Timer::TIMER_STATE, TIMER_STOPPED >::setState(), dtn::routing::NeighborRoutingExtension::stopExtension(), dtn::core::SQLiteBundleStorage::store(), ibrcommon::AtomicCounter::unblockAll(), ~Conditional(), and ibrcommon::MultiTimer::~MultiTimer().
| bool ibrcommon::Conditional::wait | ( | struct timespec * | ts | ) |
Definition at line 39 of file Conditional.cpp.
References ibrcommon::Mutex::m_mutex.
| bool ibrcommon::Conditional::wait | ( | size_t | timeout | ) |
Reimplemented in ibrcommon::WaitForConditional.
Definition at line 32 of file Conditional.cpp.
References gettimeout(), and wait().
| void ibrcommon::Conditional::wait | ( | ) |
Definition at line 27 of file Conditional.cpp.
References ibrcommon::Mutex::m_mutex.
Referenced by ibrcommon::MultiTimer::run(), ibrcommon::SimpleTimer::run(), ibrcommon::Timer::run(), dtn::routing::NeighborRoutingExtension::run(), dtn::core::WallClock::sync(), dtn::streams::StreamConnection::wait(), ibrcommon::WaitForConditional::wait(), wait(), ibrcommon::AtomicCounter::wait(), and ibrcommon::StatefulConditional< Timer::TIMER_STATE, TIMER_STOPPED >::waitState().
1.6.3