projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.0.1
[platform/upstream/iotivity.git]
/
service
/
simulator
/
src
/
service-provider
/
resource_update_automation.h
diff --git
a/service/simulator/src/service-provider/resource_update_automation.h
b/service/simulator/src/service-provider/resource_update_automation.h
index
ba80911
..
6ae1f0e
100644
(file)
--- a/
service/simulator/src/service-provider/resource_update_automation.h
+++ b/
service/simulator/src/service-provider/resource_update_automation.h
@@
-66,17
+66,17
@@
class ResourceUpdateAutomation
void stop();
void stop();
- void finished(int id);
-
private:
private:
+ void updateAttributes(std::vector<SimulatorResourceModel::Attribute> attributes);
+
SimulatorResourceServer *m_resource;
AutomationType m_type;
int m_id;
SimulatorResourceServer *m_resource;
AutomationType m_type;
int m_id;
+ bool m_stopRequested;
int m_updateInterval;
int m_updateInterval;
- SimulatorResourceModel m_resModel;
- std::map<int, AttributeUpdateAutomationSP> m_attrUpdationList;
updateCompleteCallback m_callback;
std::function<void (const int)> m_finishedCallback;
updateCompleteCallback m_callback;
std::function<void (const int)> m_finishedCallback;
+ std::thread *m_thread;
};
typedef std::shared_ptr<ResourceUpdateAutomation> ResourceUpdateAutomationSP;
};
typedef std::shared_ptr<ResourceUpdateAutomation> ResourceUpdateAutomationSP;