aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/core/closeable.h
blob: 038fdcbbb1c1924f483c9ee267261295ce400b41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace vbench {

/**
 * Something that can be closed to disrupt its steady-state behavior.
 **/
struct Closeable
{
    virtual void close() = 0;
    virtual ~Closeable() {}
};

} // namespace vbench