]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
common/Finisher: pass name as std::string_view to ctor
authorMax Kellermann <max.kellermann@ionos.com>
Wed, 9 Oct 2024 12:29:38 +0000 (14:29 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 10 Oct 2024 06:55:31 +0000 (08:55 +0200)
commitefc96a2d134a6aa0cf420de79e1c33d2e3da2ac7
treea4afa7a4189e1ace09116d4351012e3cdb7fec73
parentf4bc4be0fa812a042ec93d08987290fa40ae41b3
common/Finisher: pass name as std::string_view to ctor

This eliminates a temporary `std::string`.

Additionally, convert the `tn` parameter to an rvalue reference and
move it to `thread_name`.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/common/Finisher.cc
src/common/Finisher.h