diff options
author | Håvard Pettersen <havardpe@oath.com> | 2019-02-04 12:53:57 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2019-02-04 12:53:57 +0000 |
commit | 7908bfe57c8d6baf0b97f1b28838167b6bbac42d (patch) | |
tree | d9f7b58a9d7eb7d3f39d153a316e7a6e05a4687d /vespalib | |
parent | 3b684350f21b606ebbfe78beb51146e93673fa03 (diff) |
resolve comments
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/test/time_tracer.cpp | 6 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/test/time_tracer.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vespalib/src/vespa/vespalib/test/time_tracer.cpp b/vespalib/src/vespa/vespalib/test/time_tracer.cpp index 3ea2dee411a..49f554d1ad2 100644 --- a/vespalib/src/vespa/vespalib/test/time_tracer.cpp +++ b/vespalib/src/vespa/vespalib/test/time_tracer.cpp @@ -46,7 +46,7 @@ TimeTracer::TimeTracer() uint32_t TimeTracer::get_tag_id(const vespalib::string &tag_name) { - auto guard = std::lock_guard(_lock); + std::lock_guard guard(_lock); auto pos = _tags.find(tag_name); if (pos != _tags.end()) { return pos->second; @@ -59,7 +59,7 @@ TimeTracer::get_tag_id(const vespalib::string &tag_name) TimeTracer::ThreadState * TimeTracer::create_thread_state() { - auto guard = std::lock_guard(_lock); + std::lock_guard guard(_lock); _state_list.push_back(std::make_unique<ThreadState>()); return _state_list.back().get(); } @@ -67,7 +67,7 @@ TimeTracer::create_thread_state() std::vector<TimeTracer::Record> TimeTracer::extract_all_impl() { - auto guard = std::lock_guard(_lock); + std::lock_guard guard(_lock); std::vector<Record> list; for (size_t thread_id = 0; thread_id < _state_list.size(); ++thread_id) { const LogEntry *entry = _state_list[thread_id]->get_log_entries(); diff --git a/vespalib/src/vespa/vespalib/test/time_tracer.h b/vespalib/src/vespa/vespalib/test/time_tracer.h index 73fdb774856..2a55e2134b3 100644 --- a/vespalib/src/vespa/vespalib/test/time_tracer.h +++ b/vespalib/src/vespa/vespalib/test/time_tracer.h @@ -25,7 +25,7 @@ namespace vespalib::test { * * In order to collect timing information, the client code uses the * TT_Tag and TT_Sample classes. The TT_Tag class represents a thing - * that can happen. It should always be constructed up font. The + * that can happen. It should always be constructed up front. The * TT_Sample class represents the fact that the thing represented by a * TT_Tag is happening for as long as the TT_Sample object is * alive. In other words; if the TT_Tag is an event, the TT_Sample |