]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Cond: make C_SaferCond private members protected to facilitate inheritance
authorLeonid Usov <leonid.usov@ibm.com>
Sun, 3 Dec 2023 08:49:19 +0000 (10:49 +0200)
committerLeonid Usov <leonid.usov@ibm.com>
Mon, 4 Mar 2024 11:48:03 +0000 (13:48 +0200)
Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
src/common/Cond.h

index f41d0bf40702e98d1061836b6cbd0393982176f2..2ea4b9e2de95d0f4188c41a6b6050e5d1c40aa0d 100644 (file)
@@ -74,6 +74,7 @@ public:
  * until wait() returns.
  */
 class C_SaferCond : public Context {
+protected:
   ceph::mutex lock;  ///< Mutex to take
   ceph::condition_variable cond;     ///< Cond to signal
   bool done = false; ///< true after finish() has been called