OpenSDN source code
agent_cmn.cc
Go to the documentation of this file.
1
/*
2
* * Copyright (c) 2021 Juniper Networks, Inc. All rights reserved.
3
* * Copyright Contributors to the OpenSDN project
4
* */
5
#include <
base/task.h
>
6
#include <
cmn/agent.h
>
7
8
typedef
void (*
cxa_throw_type
)(
void
*,
void
*, void (*) (
void
*));
9
cxa_throw_type
AgentCxaThrow
= 0;
10
11
void
LoadAgentThrow
()
12
{
13
AgentCxaThrow
= (
cxa_throw_type
)dlsym(RTLD_NEXT,
"__cxa_throw"
);
14
}
15
16
void
__cxa_throw
(
void
*thrown_exception,
void
*pvtinfo,
void
(*dest)(
void
*))
17
{
18
19
if
(
AgentCxaThrow
== 0)
20
LoadAgentThrow
();
21
22
assert(0);
23
24
AgentCxaThrow
(thrown_exception, pvtinfo, dest);
25
while
(1);
26
}
agent.h
LoadAgentThrow
void LoadAgentThrow()
Definition:
agent_cmn.cc:11
cxa_throw_type
void(* cxa_throw_type)(void *, void *, void(*)(void *))
Definition:
agent_cmn.cc:8
__cxa_throw
void __cxa_throw(void *thrown_exception, void *pvtinfo, void(*dest)(void *))
Definition:
agent_cmn.cc:16
AgentCxaThrow
cxa_throw_type AgentCxaThrow
Definition:
agent_cmn.cc:9
task.h
contrail
controller
src
vnsw
agent
cmn
agent_cmn.cc
Generated by
1.9.1