mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: mbed-connector-interface/ThreadedResourceObserver.h
- Revision:
- 54:dfee8691c83a
- Parent:
- 34:a10d65907549
- Child:
- 65:57ad7b72108f
--- a/mbed-connector-interface/ThreadedResourceObserver.h Mon Aug 08 19:02:00 2016 +0000 +++ b/mbed-connector-interface/ThreadedResourceObserver.h Tue Aug 09 17:18:49 2016 +0000 @@ -48,7 +48,7 @@ @param resource input the resource to observe @param sleep_time input the time for the observation thread to sleep (in ms) */ - ThreadedResourceObserver(DynamicResource *resource,int sleep_time = OBS_PERIOD_MS); + ThreadedResourceObserver(DynamicResource *resource,int sleep_time = DEFAULT_OBS_PERIOD); /** Destructor @@ -70,6 +70,11 @@ */ static void _observation_notifier(void const *instance); + /** + halt the underlying observer mechanism + */ + virtual void halt(); + private: Thread m_observation_thread; };