aboutsummaryrefslogtreecommitdiffstats
path: root/fnet/src/vespa/fnet/iexecutable.h
blob: 440f76461dade126443ed0034059ce96e3d4828b (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

/**
 * Interface used when injecting code execution into the transport
 * thread.
 **/
class FNET_IExecutable
{
public:
    /**
     * Invoked by the transport thread as the only step to handle an
     * execution event.
     **/
    virtual void execute() = 0;

    /**
     * empty
     **/
    virtual ~FNET_IExecutable() {}
};