mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-20 11:20:41 +02:00
Minor fixes to dacnames
This commit is contained in:
commit
66900da476
@ -1146,6 +1146,9 @@ std::string CmdProxy::DacList(const int action) {
|
||||
throw sls::RuntimeError("This detector already has fixed dac "
|
||||
"names. Cannot change them.");
|
||||
}
|
||||
if (det_id != -1) {
|
||||
throw sls::RuntimeError("Cannot configure dacnames at module level");
|
||||
}
|
||||
if (args.size() != 18) {
|
||||
WrongNumberOfParameters(18);
|
||||
}
|
||||
|
@ -388,7 +388,7 @@ class DetectorImpl : public virtual slsDetectorDefs {
|
||||
|
||||
const int detectorIndex{0};
|
||||
sls::SharedMemory<sharedDetector> shm{0, -1};
|
||||
sls::SharedMemory<CtbConfig> ctb_shm{0, -1, "a"};
|
||||
sls::SharedMemory<CtbConfig> ctb_shm{0, -1, CtbConfig::shm_tag()};
|
||||
std::vector<std::unique_ptr<sls::Module>> modules;
|
||||
|
||||
/** data streaming (down stream) enabled in client (zmq sckets created) */
|
||||
|
@ -126,10 +126,8 @@ template <typename T> class SharedMemory {
|
||||
RemoveSharedMemory();
|
||||
throw SharedMemoryError(msg);
|
||||
}
|
||||
// int *pInt = new (buf) int(3);
|
||||
|
||||
shared_struct = MapSharedMemory();
|
||||
new (shared_struct) T{}; // is this ok?
|
||||
new (shared_struct) T{};
|
||||
LOG(logINFO) << "Shared memory created " << name;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user