Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: IoT_LED_demo ServoTest uWater_Project hackathon ... more
api/TaskletResourceObserver.cpp@30:113c2a1d8db2, 2015-04-07 (annotated)
- Committer:
- ansond
- Date:
- Tue Apr 07 21:30:03 2015 +0000
- Revision:
- 30:113c2a1d8db2
- Child:
- 31:bacc63106754
added better observation support for threaded endpoints using the rtos
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ansond | 30:113c2a1d8db2 | 1 | /** |
| ansond | 30:113c2a1d8db2 | 2 | * @file TaskletResourceObserver.cpp |
| ansond | 30:113c2a1d8db2 | 3 | * @brief mbed CoAP DynamicResource Tasklet-based observer (implementation) |
| ansond | 30:113c2a1d8db2 | 4 | * @author Doug Anson/Chris Paola |
| ansond | 30:113c2a1d8db2 | 5 | * @version 1.0 |
| ansond | 30:113c2a1d8db2 | 6 | * @see |
| ansond | 30:113c2a1d8db2 | 7 | * |
| ansond | 30:113c2a1d8db2 | 8 | * Copyright (c) 2014 |
| ansond | 30:113c2a1d8db2 | 9 | * |
| ansond | 30:113c2a1d8db2 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| ansond | 30:113c2a1d8db2 | 11 | * you may not use this file except in compliance with the License. |
| ansond | 30:113c2a1d8db2 | 12 | * You may obtain a copy of the License at |
| ansond | 30:113c2a1d8db2 | 13 | * |
| ansond | 30:113c2a1d8db2 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
| ansond | 30:113c2a1d8db2 | 15 | * |
| ansond | 30:113c2a1d8db2 | 16 | * Unless required by applicable law or agreed to in writing, software |
| ansond | 30:113c2a1d8db2 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
| ansond | 30:113c2a1d8db2 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ansond | 30:113c2a1d8db2 | 19 | * See the License for the specific language governing permissions and |
| ansond | 30:113c2a1d8db2 | 20 | * limitations under the License. |
| ansond | 30:113c2a1d8db2 | 21 | */ |
| ansond | 30:113c2a1d8db2 | 22 | |
| ansond | 30:113c2a1d8db2 | 23 | #include "TaskletResourceObserver.h" |
| ansond | 30:113c2a1d8db2 | 24 | |
| ansond | 30:113c2a1d8db2 | 25 | // constructor |
| ansond | 30:113c2a1d8db2 | 26 | TaskletResourceObserver::TaskletResourceObserver(DynamicResource *resource) : ResourceObserver(resource) { |
| ansond | 30:113c2a1d8db2 | 27 | } |
| ansond | 30:113c2a1d8db2 | 28 | |
| ansond | 30:113c2a1d8db2 | 29 | // copy constructor |
| ansond | 30:113c2a1d8db2 | 30 | TaskletResourceObserver::TaskletResourceObserver(const TaskletResourceObserver &observer) : ResourceObserver(observer) { |
| ansond | 30:113c2a1d8db2 | 31 | } |
| ansond | 30:113c2a1d8db2 | 32 | |
| ansond | 30:113c2a1d8db2 | 33 | // destructor |
| ansond | 30:113c2a1d8db2 | 34 | TaskletResourceObserver::~TaskletResourceObserver() { |
| ansond | 30:113c2a1d8db2 | 35 | } |
| ansond | 30:113c2a1d8db2 | 36 | |
| ansond | 30:113c2a1d8db2 | 37 | // begin observing... |
| ansond | 30:113c2a1d8db2 | 38 | void TaskletResourceObserver::beginObservation() { |
| ansond | 30:113c2a1d8db2 | 39 | } |
