mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Move Bind/Connect/Attach to FairMQChannel
This commit is contained in:
committed by
Dennis Klein
parent
3ca0d7236a
commit
25fcf13985
@@ -39,8 +39,8 @@ auto RunSingleThreadedMultipart(string transport, string address) -> void {
|
||||
|
||||
// TODO validate that fTransportFactory is not nullptr
|
||||
// TODO validate that fSocket is not nullptr
|
||||
ASSERT_TRUE(push.ValidateChannel());
|
||||
ASSERT_TRUE(pull.ValidateChannel());
|
||||
ASSERT_TRUE(push.Validate());
|
||||
ASSERT_TRUE(pull.Validate());
|
||||
|
||||
{
|
||||
auto sentMsg = FairMQParts{};
|
||||
@@ -76,7 +76,7 @@ auto RunMultiThreadedMultipart(string transport, string address) -> void
|
||||
pull.Connect(address);
|
||||
|
||||
auto pusher = thread{[&push](){
|
||||
ASSERT_TRUE(push.ValidateChannel());
|
||||
ASSERT_TRUE(push.Validate());
|
||||
|
||||
auto sentMsg = FairMQParts{};
|
||||
sentMsg.AddPart(push.NewSimpleMessage("1"));
|
||||
@@ -87,7 +87,7 @@ auto RunMultiThreadedMultipart(string transport, string address) -> void
|
||||
}};
|
||||
|
||||
auto puller = thread{[&pull](){
|
||||
ASSERT_TRUE(pull.ValidateChannel());
|
||||
ASSERT_TRUE(pull.Validate());
|
||||
|
||||
auto receivedMsg = FairMQParts{};
|
||||
ASSERT_GE(pull.Receive(receivedMsg), 0);
|
||||
|
Reference in New Issue
Block a user