These used to be for the timing instrumentation.
Signed-off-by: Sage Weil <sage@redhat.com>
id = lockdep_will_unlock(name.c_str(), id);
}
-ceph::mono_time mutex_debugging_base::before_lock_blocks() {
- return ceph::mono_time::min();
-}
-
-void mutex_debugging_base::after_lock_blocks(ceph::mono_time start,
- bool no_lockdep) {
-}
} // namespace mutex_debug_detail
} // namespace ceph
mutex_debugging_base(const char *n, bool bt = false);
~mutex_debugging_base();
- ceph::mono_time before_lock_blocks();
- void after_lock_blocks(ceph::mono_time start,
- bool no_lockdep);
-
public:
bool is_locked() const {
return (nlock > 0);
if (try_lock())
return;
- auto t = before_lock_blocks();
lock_impl();
if (!no_lockdep && g_lockdep)
_locked();
- after_lock_blocks(t, no_lockdep);
_post_lock();
}