From: Michal Jarzabek Date: Thu, 25 Aug 2016 22:47:44 +0000 (+0100) Subject: rgw/rgw_coroutine: move WaitContext to .cc file X-Git-Tag: v11.0.1~291^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aeef1d11cbe0913b6db3b875ab702dad78f89fb9;p=ceph.git rgw/rgw_coroutine: move WaitContext to .cc file Signed-off-by: Michal Jarzabek --- diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index b4604e0b6a7f..485f7c7231ff 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -9,6 +9,16 @@ #define dout_subsys ceph_subsys_rgw +class RGWCompletionManager::WaitContext : public Context { + RGWCompletionManager *manager; + void *opaque; +public: + WaitContext(RGWCompletionManager *_cm, void *_opaque) : manager(_cm), opaque(_opaque) {} + void finish(int r) { + manager->_wakeup(opaque); + } +}; + RGWCompletionManager::RGWCompletionManager(CephContext *_cct) : cct(_cct), lock("RGWCompletionManager::lock"), timer(cct, lock) { diff --git a/src/rgw/rgw_coroutine.h b/src/rgw/rgw_coroutine.h index 6b17fa0a69b7..208dfd627e01 100644 --- a/src/rgw/rgw_coroutine.h +++ b/src/rgw/rgw_coroutine.h @@ -41,17 +41,7 @@ class RGWCompletionManager : public RefCountedObject { map waiters; - class WaitContext : public Context { - RGWCompletionManager *manager; - void *opaque; - public: - WaitContext(RGWCompletionManager *_cm, void *_opaque) : manager(_cm), opaque(_opaque) {} - void finish(int r) { - manager->_wakeup(opaque); - } - }; - - friend class WaitContext; + class WaitContext; protected: void _wakeup(void *opaque);