30 #ifdef WITH_BUNDLE_SECURITY
33 #ifdef WITH_COMPRESSION
44 AbstractWorker::AbstractWorkerAsync::AbstractWorkerAsync(
AbstractWorker &worker)
50 AbstractWorker::AbstractWorkerAsync::~AbstractWorkerAsync()
56 void AbstractWorker::AbstractWorkerAsync::raiseEvent(
const dtn::core::Event *evt)
throw ()
67 _receive_bundles.push(queued.
bundle);
77 _receive_bundles.push(queued.
bundle);
80 }
catch (
const std::bad_cast&) { }
83 void AbstractWorker::AbstractWorkerAsync::shutdown()
86 _receive_bundles.abort();
91 void AbstractWorker::AbstractWorkerAsync::run()
throw ()
103 _worker.callbackBundleReceived( b );
124 void AbstractWorker::AbstractWorkerAsync::__cancellation()
throw ()
127 _receive_bundles.abort();
130 void AbstractWorker::AbstractWorkerAsync::prepareBundle(
dtn::data::Bundle &bundle)
const
142 _groups.insert(endpoint);
147 _groups.erase(endpoint);
162 if (async) _thread.start();