CppBenchmark
1.0.4.0
C++ Benchmark Library
include
benchmark
fixture_threads.h
Go to the documentation of this file.
1
9
#ifndef CPPBENCHMARK_FIXTURE_THREADS_H
10
#define CPPBENCHMARK_FIXTURE_THREADS_H
11
12
#include "
benchmark/context_threads.h
"
13
14
namespace
CppBenchmark
{
15
17
20
class
FixtureThreads
21
{
22
public
:
23
FixtureThreads
() noexcept = default;
24
FixtureThreads
(const
FixtureThreads
&) noexcept = default;
25
FixtureThreads
(
FixtureThreads
&&) noexcept = default;
26
virtual ~
FixtureThreads
() noexcept = default;
27
28
FixtureThreads
& operator=(const
FixtureThreads
&) noexcept = default;
29
FixtureThreads
& operator=(
FixtureThreads
&&) noexcept = default;
30
31
protected:
33
38
virtual
void
Initialize
(
ContextThreads
& context) {}
40
45
virtual
void
Cleanup
(
ContextThreads
& context) {}
46
48
53
virtual
void
InitializeThread
(
ContextThreads
& context) {}
55
60
virtual
void
CleanupThread
(
ContextThreads
& context) {}
61
};
62
63
}
// namespace CppBenchmark
64
65
#endif
// CPPBENCHMARK_FIXTURE_THREADS_H
CppBenchmark::ContextThreads
Benchmark thread running context.
Definition:
context_threads.h:26
CppBenchmark::FixtureThreads
Threads benchmark fixture.
Definition:
fixture_threads.h:21
CppBenchmark::FixtureThreads::Cleanup
virtual void Cleanup(ContextThreads &context)
Cleanup benchmark.
Definition:
fixture_threads.h:45
CppBenchmark::FixtureThreads::Initialize
virtual void Initialize(ContextThreads &context)
Initialize benchmark.
Definition:
fixture_threads.h:38
CppBenchmark::FixtureThreads::InitializeThread
virtual void InitializeThread(ContextThreads &context)
Initialize thread.
Definition:
fixture_threads.h:53
CppBenchmark::FixtureThreads::CleanupThread
virtual void CleanupThread(ContextThreads &context)
Cleanup thread.
Definition:
fixture_threads.h:60
CppBenchmark::FixtureThreads::FixtureThreads
FixtureThreads() noexcept=default
context_threads.h
Benchmark thread running context definition.
CppBenchmark
C++ Benchmark project definitions.
Definition:
barrier.h:15
Generated by
1.9.1