IBR-DTNSuite
0.12
|
#include <Queue.h>
Classes | |
class | Locked |
Public Types | |
enum | WAIT_MODES { QUEUE_NOT_EMPTY = 0, QUEUE_EMPTY = 1 } |
Public Member Functions | |
Queue (unsigned int max=0) | |
virtual | ~Queue () |
bool | empty () |
size_t | size () const |
T & | front () |
const T & | front () const |
T & | back () |
const T & | back () const |
void | push (const T &x) |
void | pop () |
T | get (bool blocking=false, size_t timeout=0) throw (QueueUnblockedException) |
T | getnpop (bool blocking=false, size_t timeout=0) throw (QueueUnblockedException) |
void | abort () throw () |
void | reset () throw () |
void | wait (WAIT_MODES mode, const size_t timeout=0) throw (QueueUnblockedException) |
Queue< T >::Locked | exclusive () |
Protected Member Functions | |
void | __push (const T &x) |
void | __pop () |
void | __wait (const WAIT_MODES mode) throw (QueueUnblockedException) |
void | __wait (const WAIT_MODES mode, const size_t timeout) throw (QueueUnblockedException) |
enum ibrcommon::Queue::WAIT_MODES |
|
inline |
|
inlinevirtual |
|
inlineprotected |
Definition at line 310 of file Queue.h.
Referenced by ibrcommon::Queue< dtn::net::BundleTransfer >::getnpop(), and ibrcommon::Queue< dtn::net::BundleTransfer >::pop().
|
inlineprotected |
|
inlineprotected |
Definition at line 320 of file Queue.h.
Referenced by ibrcommon::Queue< dtn::net::BundleTransfer >::get(), ibrcommon::Queue< dtn::net::BundleTransfer >::getnpop(), and ibrcommon::Queue< dtn::net::BundleTransfer >::wait().
|
inlineprotected |
|
inline |
Definition at line 206 of file Queue.h.
Referenced by dtn::net::LOWPANConnectionSender::__cancellation(), ibrcommon::SignalHandler::__cancellation(), dtn::core::FragmentManager::__cancellation(), dtn::routing::ProphetRoutingExtension::__cancellation(), dtn::storage::DataStorage::__cancellation(), dtn::net::EMailSmtpService::__cancellation(), dtn::storage::SQLiteBundleStorage::__cancellation(), dtn::api::Client::abort(), dtn::api::Registration::abort(), dtn::api::Client::eventConnectionDown(), dtn::storage::DataStorage::~DataStorage(), and ibrcommon::Queue< dtn::net::BundleTransfer >::~Queue().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 298 of file Queue.h.
Referenced by dtn::net::TCPConnection::clearQueue(), dtn::net::TCPConnection::eventBundleForwarded(), and dtn::net::TCPConnection::eventBundleRefused().
|
inline |
|
inline |
|
inline |
Definition at line 146 of file Queue.h.
Referenced by dtn::storage::DataStorage::run().
|
inline |
Definition at line 175 of file Queue.h.
Referenced by dtn::core::FragmentManager::componentRun(), dtn::net::DatagramConvergenceLayer::componentRun(), dtn::storage::SQLiteBundleStorage::componentRun(), dtn::api::BinaryStreamClient::eventBundleForwarded(), dtn::api::BinaryStreamClient::eventBundleRefused(), dtn::net::LOWPANConnectionSender::run(), ibrcommon::SignalHandler::run(), dtn::api::ExtendedApiHandler::run(), dtn::net::EMailSmtpService::run(), dtn::api::Registration::wait(), and dtn::storage::DataStorage::~DataStorage().
|
inline |
Definition at line 140 of file Queue.h.
Referenced by dtn::storage::DataStorage::run().
|
inline |
Definition at line 130 of file Queue.h.
Referenced by dtn::net::DatagramConvergenceLayer::componentDown(), dtn::net::DatagramConvergenceLayer::connectionDown(), dtn::api::Registration::notify(), dtn::net::LOWPANConnectionSender::queue(), dtn::net::DatagramConvergenceLayer::queue(), dtn::net::EMailSmtpService::queueTask(), dtn::net::DatagramConvergenceLayer::receive(), dtn::api::NativeSession::receive(), dtn::api::Client::received(), dtn::storage::DataStorage::remove(), dtn::core::FragmentManager::signal(), dtn::storage::DataStorage::store(), and dtn::net::EMailSmtpService::submitNow().
|
inline |
Definition at line 212 of file Queue.h.
Referenced by dtn::routing::ProphetRoutingExtension::componentUp(), and dtn::api::Registration::detach().
|
inline |
|
inline |
Definition at line 223 of file Queue.h.
Referenced by dtn::storage::DataStorage::wait(), and dtn::storage::SQLiteBundleStorage::wait().