From 854062d73c485027f2f40abac159cb19e85c0dca Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 14 May 2010 13:55:18 +0000 Subject: Initial multi-thread unit test for messaging API. - added Receiver::isClosed() to test for local close. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944261 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/MessagingFixture.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/tests/MessagingFixture.h') diff --git a/cpp/src/tests/MessagingFixture.h b/cpp/src/tests/MessagingFixture.h index 5fb3fc56b2..5546b4ef49 100644 --- a/cpp/src/tests/MessagingFixture.h +++ b/cpp/src/tests/MessagingFixture.h @@ -182,7 +182,7 @@ struct MultiQueueFixture : MessagingFixture }; -std::vector fetch(messaging::Receiver& receiver, int count, messaging::Duration timeout=messaging::Duration::SECOND*5) +inline std::vector fetch(messaging::Receiver& receiver, int count, messaging::Duration timeout=messaging::Duration::SECOND*5) { std::vector data; messaging::Message message; @@ -193,7 +193,7 @@ std::vector fetch(messaging::Receiver& receiver, int count, messagi } -void send(messaging::Sender& sender, uint count = 1, uint start = 1, +inline void send(messaging::Sender& sender, uint count = 1, uint start = 1, const std::string& base = "Message") { for (uint i = start; i < start + count; ++i) { @@ -201,7 +201,7 @@ void send(messaging::Sender& sender, uint count = 1, uint start = 1, } } -void receive(messaging::Receiver& receiver, uint count = 1, uint start = 1, +inline void receive(messaging::Receiver& receiver, uint count = 1, uint start = 1, const std::string& base = "Message", messaging::Duration timeout=messaging::Duration::SECOND*5) { -- cgit v1.2.1