aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/expression/debugwaitfunctionnode.h
blob: 4a3ca0cf64d053688b302ca9cc5b9b1af3091b98 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "unaryfunctionnode.h"

namespace search::expression {

class DebugWaitFunctionNode : public UnaryFunctionNode
{
public:
    DECLARE_EXPRESSIONNODE(DebugWaitFunctionNode);
    DECLARE_NBO_SERIALIZE;
    DebugWaitFunctionNode();
    ~DebugWaitFunctionNode() override;
    DebugWaitFunctionNode(ExpressionNode::UP arg, double waitTime, bool busyWait);
    void visitMembers(vespalib::ObjectVisitor &visitor) const override;
private:
    bool onExecute() const override;
    double _waitTime;
    bool   _busyWait;
};

}