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

#include "runnable_pair.h"

namespace vespalib {

RunnablePair::RunnablePair(Runnable &first, Runnable &second)
    : _first(first),
      _second(second)
{
}

void
RunnablePair::run()
{
    _first.run();
    _second.run();
}

} // namespace vespalib