Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-smf
Commits
c99d5a7f
Commit
c99d5a7f
authored
Jun 13, 2021
by
Tien-Thinh Nguyen
Browse files
Update SMF_App destructor
parent
9e8579fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/smf_app/smf_app.cpp
View file @
c99d5a7f
...
@@ -363,6 +363,13 @@ smf_app::smf_app(const std::string& config_file)
...
@@ -363,6 +363,13 @@ smf_app::smf_app(const std::string& config_file)
Logger
::
smf_app
().
startup
(
"Started"
);
Logger
::
smf_app
().
startup
(
"Started"
);
}
}
//------------------------------------------------------------------------------
smf_app
::~
smf_app
()
{
Logger
::
smf_app
().
debug
(
"Delete SMF_APP instance..."
);
// TODO: Unregister NRF
if
(
smf_n4_inst
)
delete
smf_n4_inst
;
if
(
smf_sbi_inst
)
delete
smf_sbi_inst
;
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
smf_app
::
start_upf_association
(
const
pfcp
::
node_id_t
&
node_id
)
{
void
smf_app
::
start_upf_association
(
const
pfcp
::
node_id_t
&
node_id
)
{
std
::
time_t
time_epoch
=
std
::
time
(
nullptr
);
std
::
time_t
time_epoch
=
std
::
time
(
nullptr
);
...
...
src/smf_app/smf_app.hpp
View file @
c99d5a7f
...
@@ -206,11 +206,7 @@ class smf_app {
...
@@ -206,11 +206,7 @@ class smf_app {
public:
public:
explicit
smf_app
(
const
std
::
string
&
config_file
);
explicit
smf_app
(
const
std
::
string
&
config_file
);
smf_app
(
smf_app
const
&
)
=
delete
;
smf_app
(
smf_app
const
&
)
=
delete
;
virtual
~
smf_app
();
virtual
~
smf_app
()
{
Logger
::
smf_app
().
debug
(
"Delete SMF_APP instance..."
);
// TODO: Unregister NRF
}
void
operator
=
(
smf_app
const
&
)
=
delete
;
void
operator
=
(
smf_app
const
&
)
=
delete
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment