aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/runnable_pair.h
blob: 97417728b0fd33f96d4c690e2ba49a94c7d372dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "runnable.h"

namespace vespalib {

/**
 * Simple utility running two runnables in order.
 **/
class RunnablePair : public Runnable
{
private:
    Runnable &_first;
    Runnable &_second;

public:
    RunnablePair(Runnable &first, Runnable &second);
    void run() override;
};

} // namespace vespalib