Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
2645bad3
Commit
2645bad3
authored
Mar 07, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for deadlock when removing gNB context
parent
3b2bda13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/ngap/ngap_app/ngap_app.cpp
src/ngap/ngap_app/ngap_app.cpp
+8
-2
No files found.
src/ngap/ngap_app/ngap_app.cpp
View file @
2645bad3
...
...
@@ -144,6 +144,7 @@ void ngap_app::set_assoc_id_2_gnb_context(
const
sctp_assoc_id_t
&
assoc_id
,
std
::
shared_ptr
<
gnb_context
>
gc
)
{
std
::
shared_lock
lock
(
m_assoc2gnbContext
);
assoc2gnbContext
[
assoc_id
]
=
gc
;
return
;
}
//------------------------------------------------------------------------------
...
...
@@ -164,10 +165,15 @@ void ngap_app::set_gnb_id_2_gnb_context(
const
long
&
gnb_id
,
std
::
shared_ptr
<
gnb_context
>
gc
)
{
std
::
unique_lock
lock
(
m_gnbid2gnbContext
);
gnbid2gnbContext
[
gnb_id
]
=
gc
;
return
;
}
//------------------------------------------------------------------------------
void
ngap_app
::
remove_gnb_context
(
const
long
&
gnb_id
)
{
std
::
unique_lock
lock
(
m_gnbid2gnbContext
);
if
(
is_gnb_id_2_gnb_context
(
gnb_id
))
gnbid2gnbContext
.
erase
(
gnb_id
);
if
(
is_gnb_id_2_gnb_context
(
gnb_id
))
{
std
::
unique_lock
lock
(
m_gnbid2gnbContext
);
gnbid2gnbContext
.
erase
(
gnb_id
);
return
;
}
}
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