Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c1b92b

Browse files
committed
fix comments
1 parent 3c68423 commit 0c1b92b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/behaviortree_cpp/blackboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class Blackboard
255255
storage_.clear();
256256
}
257257

258-
[[deprecated("Use getAnyRead or getAnyWrite to access safely an Entry")]]
258+
[[deprecated("Use getAnyLocked to access safely an Entry")]]
259259
std::recursive_mutex& entryMutex() const
260260
{
261261
return entry_mutex_;

include/behaviortree_cpp/tree_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,13 @@ class TreeNode
261261
* // modifying the content of foo_ptr inside this scope IS thread-safe
262262
* }
263263
*
264-
* It is important to destroy the object AnyWriteRef, to release the lock.
264+
* It is important to destroy the object AnyPtrLocked, to release the lock.
265265
*
266266
* NOTE: this method doesn't work, if the port contains a static string, instead
267267
* of a blackboard pointer.
268268
*
269269
* @param key the identifier of the port.
270-
* @return empty AnyWriteRef if the blackboard entry doesn't exist or the content
270+
* @return empty AnyPtrLocked if the blackboard entry doesn't exist or the content
271271
* of the port was a static string.
272272
*/
273273
[[nodiscard]] AnyPtrLocked getLockedPortContent(const std::string& key);

0 commit comments

Comments
 (0)