mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
include/C_Lock: s/Mutex/ceph::mutex/
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
fcc6ae58c3
commit
33ba265b79
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user