blob: 47baa95b9e2a5268770d11d84f5560f89793b95d (
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
25
26
27
28
29
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "target.h"
#include "supervisor.h"
#include <vespa/fnet/transport_thread.h>
FRT_Target::~FRT_Target()
{
FNET_Connection * conn(_conn);
_conn = nullptr;
if (conn != nullptr) {
conn->Owner()->Close(conn, /* needref */ false);
}
}
void
FRT_Target::InvokeAsync(FRT_RPCRequest *req, double timeout, FRT_IRequestWait *waiter) {
FRT_Supervisor::InvokeAsync(_scheduler, _conn, req, timeout, waiter);
}
void
FRT_Target::InvokeVoid(FRT_RPCRequest *req) {
FRT_Supervisor::InvokeVoid(_conn, req);
}
void
FRT_Target::InvokeSync(FRT_RPCRequest *req, double timeout) {
FRT_Supervisor::InvokeSync(_scheduler, _conn, req, timeout);
}
|