summaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/core/closeable.h
blob: cffe91e12da605eb06b05558142c255e8c1ab7f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017 Yahoo Holdings. 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