diff options
author | Alan Conway <aconway@apache.org> | 2008-08-06 21:17:19 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-08-06 21:17:19 +0000 |
commit | fd5bd02ac45e991e7bcc363fa489179056fe486c (patch) | |
tree | 23c4311aaffe5aa76045b8c56004dd8f3fab7033 /qpid/cpp/src/qpid/sys/AggregateOutput.cpp | |
parent | 467af5e55545de8170485f23b6bb6e12c537d2b4 (diff) | |
download | qpid-python-fd5bd02ac45e991e7bcc363fa489179056fe486c.tar.gz |
- Added OutputTask::hasOutput() test.
- Cluster only sends doOutput events when hasOutput()
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/sys/AggregateOutput.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/sys/AggregateOutput.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/sys/AggregateOutput.cpp b/qpid/cpp/src/qpid/sys/AggregateOutput.cpp index 57cc0c5a33..2fad28c381 100644 --- a/qpid/cpp/src/qpid/sys/AggregateOutput.cpp +++ b/qpid/cpp/src/qpid/sys/AggregateOutput.cpp @@ -31,6 +31,12 @@ void AggregateOutput::activateOutput() control.activateOutput(); } +bool AggregateOutput::hasOutput() { + for (TaskList::const_iterator i = tasks.begin(); i != tasks.end(); ++i) + if ((*i)->hasOutput()) return true; + return false; +} + bool AggregateOutput::doOutput() { bool result = false; |