Skip to content
Snippets Groups Projects
Commit 3a573cef authored by Martin Killenberg's avatar Martin Killenberg
Browse files

prepared interface of DeviceModule for issue #81

parent 53d9ee23
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,9 @@ namespace ChimeraTK { ...@@ -184,6 +184,9 @@ namespace ChimeraTK {
ScalarOutput<int> deviceBecameFunctional{ ScalarOutput<int> deviceBecameFunctional{
this, "deviceBecameFunctional", "", ""}; // should be changed to data type void this, "deviceBecameFunctional", "", ""}; // should be changed to data type void
void addRecoveryAccessor(boost::shared_ptr<TransferElement> recoveryAccessor);
boost::shared_lock<boost::shared_mutex> getRecoverySharedLock();
protected: protected:
// populate virtualisedModuleFromCatalog based on the information in the // populate virtualisedModuleFromCatalog based on the information in the
// device's catalogue // device's catalogue
...@@ -249,6 +252,8 @@ namespace ChimeraTK { ...@@ -249,6 +252,8 @@ namespace ChimeraTK {
/* The list of initialisation handler callback functions */ /* The list of initialisation handler callback functions */
std::list<std::function<void(DeviceModule*)>> initialisationHandlers; std::list<std::function<void(DeviceModule*)>> initialisationHandlers;
boost::shared_mutex recoverySharedMutex;
friend class Application; friend class Application;
friend struct history::ServerHistory; friend struct history::ServerHistory;
friend class detail::DeviceModuleProxy; friend class detail::DeviceModuleProxy;
......
...@@ -467,4 +467,12 @@ namespace ChimeraTK { ...@@ -467,4 +467,12 @@ namespace ChimeraTK {
void DeviceModule::notify() { errorIsResolvedCondVar.notify_all(); } void DeviceModule::notify() { errorIsResolvedCondVar.notify_all(); }
void DeviceModule::addRecoveryAccessor(boost::shared_ptr<TransferElement> recoveryAccessor) {
std::cout << "DeviceModule::addRecoveryAccessor:: Implement me" << std::endl;
}
boost::shared_lock<boost::shared_mutex> DeviceModule::getRecoverySharedLock() {
return boost::shared_lock<boost::shared_mutex>(recoverySharedMutex);
}
} // namespace ChimeraTK } // namespace ChimeraTK
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment