TracepointProvider::TracepointProvider(CephContext *cct, const char *library,
const char *config_key)
- : m_cct(cct), m_library(library), m_config_keys{config_key, NULL},
- m_lock("TracepointProvider::m_lock") {
+ : m_cct(cct), m_library(library), m_config_keys{config_key, NULL}
+{
m_cct->_conf.add_observer(this);
verify_config(m_cct->_conf);
}
}
void TracepointProvider::verify_config(const ConfigProxy& conf) {
- std::lock_guard<Mutex> locker(m_lock);
+ std::lock_guard locker(m_lock);
if (m_handle) {
return;
}
#include "common/ceph_context.h"
#include "common/config_obs.h"
-#include "common/Mutex.h"
+#include "common/ceph_mutex.h"
#include <dlfcn.h>
class TracepointProvider : public md_config_obs_t {
std::string m_library;
mutable const char* m_config_keys[2];
- Mutex m_lock;
+ ceph::mutex m_lock = ceph::make_mutex("TracepointProvider::m_lock");
void* m_handle = nullptr;
void verify_config(const ConfigProxy& conf);