mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
example: fix incorrect config
This commit is contained in:
parent
77e04d56de
commit
b7a4f22a13
|
@ -39,12 +39,9 @@ struct Sampler : fair::mq::Device
|
||||||
if (fExternalRegion) {
|
if (fExternalRegion) {
|
||||||
regionCfg.id = 1;
|
regionCfg.id = 1;
|
||||||
regionCfg.removeOnDestruction = false;
|
regionCfg.removeOnDestruction = false;
|
||||||
regionCfg.lock = false; // mlock region after creation
|
|
||||||
regionCfg.lock = false; // mlock region after creation
|
|
||||||
} else {
|
|
||||||
regionCfg.lock = true; // mlock region after creation
|
|
||||||
regionCfg.zero = true; // zero region content after creation
|
|
||||||
}
|
}
|
||||||
|
regionCfg.lock = !fExternalRegion; // mlock region after creation
|
||||||
|
regionCfg.zero = !fExternalRegion; // zero region content after creation
|
||||||
fRegion = fair::mq::UnmanagedRegionPtr(NewUnmanagedRegionFor(
|
fRegion = fair::mq::UnmanagedRegionPtr(NewUnmanagedRegionFor(
|
||||||
"data", // region is created using the transport of this channel...
|
"data", // region is created using the transport of this channel...
|
||||||
0, // ... and this sub-channel
|
0, // ... and this sub-channel
|
||||||
|
|
Loading…
Reference in New Issue
Block a user