include/C_Lock: s/Mutex/ceph::mutex/

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-07-07 11:12:28 +08:00
parent fcc6ae58c3
commit 33ba265b79

View File

@ -175,18 +175,17 @@ public:
struct C_Lock : public Context {
Mutex *lock;
ceph::mutex *lock;
Context *fin;
C_Lock(Mutex *l, Context *c) : lock(l), fin(c) {}
C_Lock(ceph::mutex *l, Context *c) : lock(l), fin(c) {}
~C_Lock() override {
delete fin;
}
void finish(int r) override {
if (fin) {
lock->Lock();
std::lock_guard l{*lock};
fin->complete(r);
fin = NULL;
lock->Unlock();
}
}
};