[COMMIT seastar master] core/sharded.hh: tweak on comment for better readability

4 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Sep 23, 2022, 8:31:32 AMSep 23
to seastar-dev@googlegroups.com, Kefu Chai
From: Kefu Chai <tcha...@gmail.com>
Committer: Pavel Emelyanov <xe...@scylladb.com>
Branch: master

core/sharded.hh: tweak on comment for better readability

just some minor tweaks, easier to digest this way.

Signed-off-by: Kefu Chai <tcha...@gmail.com>

Closes #1217

---
diff --git a/include/seastar/core/sharded.hh b/include/seastar/core/sharded.hh
--- a/include/seastar/core/sharded.hh
+++ b/include/seastar/core/sharded.hh
@@ -103,8 +103,8 @@ using sharded_unwrap_t = typename sharded_unwrap<T>::type;
template <typename T>
class sharded;

-/// If sharded service inherits from this class sharded::stop() will wait
-/// until all references to a service on each shard will disappear before
+/// If a sharded service inherits from this class, sharded::stop() will wait
+/// until all references to this service on each shard are released before
/// returning. It is still service's own responsibility to track its references
/// in asynchronous code by calling shared_from_this() and keeping returned smart
/// pointer as long as object is in use.
Reply all
Reply to author
Forward
0 new messages