mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
Compare commits
6 Commits
v1.2.5
...
v1.2.7-pat
Author | SHA1 | Date | |
---|---|---|---|
|
e642262468 | ||
|
9bab3f9f4c | ||
|
ee3a84ce7a | ||
|
f05118f4eb | ||
|
21419adb40 | ||
|
1554c1c273 |
@@ -48,7 +48,11 @@ endif()
|
|||||||
|
|
||||||
if(BUILD_NANOMSG_TRANSPORT)
|
if(BUILD_NANOMSG_TRANSPORT)
|
||||||
find_package2(PRIVATE nanomsg VERSION 1.0.0 REQUIRED)
|
find_package2(PRIVATE nanomsg VERSION 1.0.0 REQUIRED)
|
||||||
|
find_package2(PRIVATE msgpack VERSION 3.0.0)
|
||||||
|
set(PROJECT_msgpack_VERSION 2.1.5)
|
||||||
|
if(NOT msgpack_FOUND)
|
||||||
find_package2(PRIVATE msgpack VERSION 2.1.5 REQUIRED)
|
find_package2(PRIVATE msgpack VERSION 2.1.5 REQUIRED)
|
||||||
|
endif()
|
||||||
set(msgpack_ROOT ${PACKAGE_PREFIX_DIR})
|
set(msgpack_ROOT ${PACKAGE_PREFIX_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ Aphecetche, Laurent
|
|||||||
Binet, Sebastien
|
Binet, Sebastien
|
||||||
Eulisse, Giulio
|
Eulisse, Giulio
|
||||||
Karabowicz, Radoslaw
|
Karabowicz, Radoslaw
|
||||||
|
Kretz, Matthias <kretz@kde.org>
|
||||||
Krzewicki, Mikolaj
|
Krzewicki, Mikolaj
|
||||||
Neskovic, Gvozden
|
Neskovic, Gvozden
|
||||||
Richter, Matthias
|
Richter, Matthias
|
||||||
|
@@ -280,6 +280,7 @@ macro(find_package2 qualifier pkgname)
|
|||||||
set(CMAKE_PREFIX_PATH ${old_CPP})
|
set(CMAKE_PREFIX_PATH ${old_CPP})
|
||||||
unset(old_CPP)
|
unset(old_CPP)
|
||||||
|
|
||||||
|
if(${pkgname}_FOUND)
|
||||||
if(${qualifier} STREQUAL PRIVATE)
|
if(${qualifier} STREQUAL PRIVATE)
|
||||||
set(PROJECT_${pkgname}_VERSION ${ARGS_VERSION})
|
set(PROJECT_${pkgname}_VERSION ${ARGS_VERSION})
|
||||||
set(PROJECT_${pkgname}_COMPONENTS ${ARGS_COMPONENTS})
|
set(PROJECT_${pkgname}_COMPONENTS ${ARGS_COMPONENTS})
|
||||||
@@ -296,4 +297,5 @@ macro(find_package2 qualifier pkgname)
|
|||||||
set(PROJECT_INTERFACE_${pkgname}_COMPONENTS ${ARGS_COMPONENTS})
|
set(PROJECT_INTERFACE_${pkgname}_COMPONENTS ${ARGS_COMPONENTS})
|
||||||
set(PROJECT_INTERFACE_PACKAGE_DEPENDENCIES ${PROJECT_INTERFACE_PACKAGE_DEPENDENCIES} ${pkgname})
|
set(PROJECT_INTERFACE_PACKAGE_DEPENDENCIES ${PROJECT_INTERFACE_PACKAGE_DEPENDENCIES} ${pkgname})
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
@@ -499,7 +499,7 @@ bool FairMQChannel::ValidateChannel()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
vector<string> endpoints;
|
vector<string> endpoints;
|
||||||
boost::algorithm::split(endpoints, fAddress, boost::algorithm::is_any_of(","));
|
boost::algorithm::split(endpoints, fAddress, boost::algorithm::is_any_of(";"));
|
||||||
for (const auto endpoint : endpoints)
|
for (const auto endpoint : endpoints)
|
||||||
{
|
{
|
||||||
string address;
|
string address;
|
||||||
|
@@ -280,7 +280,7 @@ bool FairMQDevice::AttachChannel(FairMQChannel& ch)
|
|||||||
}
|
}
|
||||||
catch (fair::mq::SocketError& se)
|
catch (fair::mq::SocketError& se)
|
||||||
{
|
{
|
||||||
LOG(ERROR) << se.what();
|
LOG(error) << se.what();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -823,7 +823,7 @@ void FairMQDevice::CreateOwnConfig()
|
|||||||
try {
|
try {
|
||||||
fDefaultTransportType = fair::mq::TransportTypes.at(fConfig->GetValue<string>("transport"));
|
fDefaultTransportType = fair::mq::TransportTypes.at(fConfig->GetValue<string>("transport"));
|
||||||
} catch(const exception& e) {
|
} catch(const exception& e) {
|
||||||
LOG(ERROR) << "invalid transport type provided: " << fConfig->GetValue<string>("transport");
|
LOG(error) << "invalid transport type provided: " << fConfig->GetValue<string>("transport");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -867,7 +867,7 @@ void FairMQDevice::SetConfig(FairMQProgOptions& config)
|
|||||||
try {
|
try {
|
||||||
fDefaultTransportType = fair::mq::TransportTypes.at(fConfig->GetValue<string>("transport"));
|
fDefaultTransportType = fair::mq::TransportTypes.at(fConfig->GetValue<string>("transport"));
|
||||||
} catch(const exception& e) {
|
} catch(const exception& e) {
|
||||||
LOG(ERROR) << "invalid transport type provided: " << fConfig->GetValue<string>("transport");
|
LOG(error) << "invalid transport type provided: " << fConfig->GetValue<string>("transport");
|
||||||
}
|
}
|
||||||
SetTransport(fConfig->GetValue<string>("transport"));
|
SetTransport(fConfig->GetValue<string>("transport"));
|
||||||
}
|
}
|
||||||
|
@@ -413,7 +413,7 @@ int FairMQProgOptions::PrintOptions()
|
|||||||
|
|
||||||
for (const auto& o : fUnregisteredOptions)
|
for (const auto& o : fUnregisteredOptions)
|
||||||
{
|
{
|
||||||
LOG(WARN) << "detected unregistered option: " << o;
|
LOG(debug) << "detected unregistered option: " << o;
|
||||||
}
|
}
|
||||||
|
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
|
@@ -227,7 +227,7 @@ auto Control::WaitForNextState() -> DeviceState
|
|||||||
unique_lock<mutex> lock{fEventsMutex};
|
unique_lock<mutex> lock{fEventsMutex};
|
||||||
while (fEvents.empty())
|
while (fEvents.empty())
|
||||||
{
|
{
|
||||||
fNewEvent.wait(lock);
|
fNewEvent.wait_for(lock, chrono::milliseconds(50));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = fEvents.front();
|
auto result = fEvents.front();
|
||||||
|
@@ -110,12 +110,12 @@ auto DDS::HandleControl() -> void
|
|||||||
// and propagate addresses of bound channels to DDS.
|
// and propagate addresses of bound channels to DDS.
|
||||||
FillChannelContainers();
|
FillChannelContainers();
|
||||||
|
|
||||||
LOG(DEBUG) << "$DDS_TASK_PATH: " << getenv("DDS_TASK_PATH");
|
LOG(debug) << "$DDS_TASK_PATH: " << getenv("DDS_TASK_PATH");
|
||||||
LOG(DEBUG) << "$DDS_GROUP_NAME: " << getenv("DDS_GROUP_NAME");
|
LOG(debug) << "$DDS_GROUP_NAME: " << getenv("DDS_GROUP_NAME");
|
||||||
LOG(DEBUG) << "$DDS_COLLECTION_NAME: " << getenv("DDS_COLLECTION_NAME");
|
LOG(debug) << "$DDS_COLLECTION_NAME: " << getenv("DDS_COLLECTION_NAME");
|
||||||
LOG(DEBUG) << "$DDS_TASK_NAME: " << getenv("DDS_TASK_NAME");
|
LOG(debug) << "$DDS_TASK_NAME: " << getenv("DDS_TASK_NAME");
|
||||||
LOG(DEBUG) << "$DDS_TASK_INDEX: " << getenv("DDS_TASK_INDEX");
|
LOG(debug) << "$DDS_TASK_INDEX: " << getenv("DDS_TASK_INDEX");
|
||||||
LOG(DEBUG) << "$DDS_COLLECTION_INDEX: " << getenv("DDS_COLLECTION_INDEX");
|
LOG(debug) << "$DDS_COLLECTION_INDEX: " << getenv("DDS_COLLECTION_INDEX");
|
||||||
|
|
||||||
// start DDS service - subscriptions will only start firing after this step
|
// start DDS service - subscriptions will only start firing after this step
|
||||||
fService.start();
|
fService.start();
|
||||||
|
@@ -196,7 +196,7 @@ int FairMQSocketSHM::ReceiveImpl(FairMQMessagePtr& msg, const int flags, const i
|
|||||||
const auto numMsgs = nbytes / sizeof(MetaHeader);
|
const auto numMsgs = nbytes / sizeof(MetaHeader);
|
||||||
if (numMsgs > 1)
|
if (numMsgs > 1)
|
||||||
{
|
{
|
||||||
LOG(ERROR) << "Receiving SHM multipart with a single message receive call";
|
LOG(error) << "Receiving SHM multipart with a single message receive call";
|
||||||
}
|
}
|
||||||
|
|
||||||
assert (numMsgs == 1);
|
assert (numMsgs == 1);
|
||||||
@@ -311,13 +311,13 @@ int64_t FairMQSocketSHM::SendImpl(vector<FairMQMessagePtr>& msgVec, const int fl
|
|||||||
else if (zmq_errno() == ETERM)
|
else if (zmq_errno() == ETERM)
|
||||||
{
|
{
|
||||||
zmq_msg_close (&lZmqMsg);
|
zmq_msg_close (&lZmqMsg);
|
||||||
LOG(INFO) << "terminating socket " << fId;
|
LOG(info) << "terminating socket " << fId;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
zmq_msg_close (&lZmqMsg);
|
zmq_msg_close (&lZmqMsg);
|
||||||
LOG(ERROR) << "Failed sending on socket " << fId << ", reason: " << zmq_strerror(errno);
|
LOG(error) << "Failed sending on socket " << fId << ", reason: " << zmq_strerror(errno);
|
||||||
return nbytes;
|
return nbytes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -69,7 +69,7 @@ FairMQTransportFactorySHM::FairMQTransportFactorySHM(const string& id, const Fai
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG(warn) << "FairMQProgOptions not available! Using defaults.";
|
LOG(debug) << "FairMQProgOptions not available! Using defaults.";
|
||||||
}
|
}
|
||||||
|
|
||||||
fSessionName.resize(8, '_'); // shorten the session name, to accommodate for name size limit on some systems (MacOS)
|
fSessionName.resize(8, '_'); // shorten the session name, to accommodate for name size limit on some systems (MacOS)
|
||||||
|
@@ -39,7 +39,7 @@ FairMQTransportFactoryZMQ::FairMQTransportFactoryZMQ(const string& id, const Fai
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG(warn) << "FairMQProgOptions not available! Using defaults.";
|
LOG(debug) << "FairMQProgOptions not available! Using defaults.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zmq_ctx_set(fContext, ZMQ_IO_THREADS, numIoThreads) != 0)
|
if (zmq_ctx_set(fContext, ZMQ_IO_THREADS, numIoThreads) != 0)
|
||||||
|
Reference in New Issue
Block a user