]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/mutex_debug: take const char * to ctor, and require a name
authorSage Weil <sage@redhat.com>
Thu, 20 Sep 2018 17:10:13 +0000 (12:10 -0500)
committerSage Weil <sage@redhat.com>
Fri, 21 Sep 2018 16:52:56 +0000 (11:52 -0500)
commit77acda721910964faa52175afc9d32a5fec8e415
treeb21c8f99a2b46a3ef1af3639f2f0e48b181a9c4f
parent27c6d283e936bb4e0401e617671874a182ec0ada
common/mutex_debug: take const char * to ctor, and require a name

Require a name, like Mutex.

Most callers are passing a C string.  This may avoid a std::string
copy?

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/mutex_debug.cc
src/common/mutex_debug.h
src/test/common/test_mutex_debug.cc