mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Thread safe initialization of the channels
This commit is contained in:
@@ -116,9 +116,9 @@ int main(int argc, char** argv)
|
||||
client.SetProperty(FairMQExampleClient::NumIoThreads, 1);
|
||||
|
||||
FairMQChannel requestChannel("req", "connect", "tcp://localhost:5005");
|
||||
requestChannel.fSndBufSize = 10000;
|
||||
requestChannel.fRcvBufSize = 10000;
|
||||
requestChannel.fRateLogging = 1;
|
||||
requestChannel.UpdateSndBufSize(10000);
|
||||
requestChannel.UpdateRcvBufSize(10000);
|
||||
requestChannel.UpdateRateLogging(1);
|
||||
|
||||
client.fChannels["data"].push_back(requestChannel);
|
||||
|
||||
|
@@ -66,9 +66,9 @@ int main(int argc, char** argv)
|
||||
server.SetProperty(FairMQExampleServer::NumIoThreads, 1);
|
||||
|
||||
FairMQChannel replyChannel("rep", "bind", "tcp://*:5005");
|
||||
replyChannel.fSndBufSize = 10000;
|
||||
replyChannel.fRcvBufSize = 10000;
|
||||
replyChannel.fRateLogging = 1;
|
||||
replyChannel.UpdateSndBufSize(10000);
|
||||
replyChannel.UpdateRcvBufSize(10000);
|
||||
replyChannel.UpdateRateLogging(1);
|
||||
|
||||
server.fChannels["data"].push_back(replyChannel);
|
||||
|
||||
|
Reference in New Issue
Block a user