| 254 | } |
| 255 | |
| 256 | inline void Blackboard::unset(const std::string& key) |
| 257 | { |
| 258 | std::unique_lock storage_lock(storage_mutex_); |
| 259 | |
| 260 | // check local storage |
| 261 | auto it = storage_.find(key); |
| 262 | if(it == storage_.end()) |
| 263 | { |
| 264 | // No entry, nothing to do. |
| 265 | return; |
| 266 | } |
| 267 | |
| 268 | storage_.erase(it); |
| 269 | } |
| 270 | |
| 271 | template <typename T> |
| 272 | inline void Blackboard::set(const std::string& key, const T& value) |