Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
alex037yang
OpenXG-RAN
Commits
f02b5392
Commit
f02b5392
authored
Oct 29, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct init_cont_stats_update(), test for result
parent
2cf40606
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
openair2/ENB_APP/flexran_agent.c
openair2/ENB_APP/flexran_agent.c
+5
-2
openair2/ENB_APP/flexran_agent_handler.c
openair2/ENB_APP/flexran_agent_handler.c
+1
-1
No files found.
openair2/ENB_APP/flexran_agent.c
View file @
f02b5392
...
...
@@ -235,7 +235,10 @@ int flexran_agent_start(mid_t mod_id)
*/
/*Initialize the continuous stats update mechanism*/
flexran_agent_init_cont_stats_update
(
mod_id
);
if
(
flexran_agent_init_cont_stats_update
(
mod_id
)
<
0
)
{
LOG_E
(
FLEXRAN_AGENT
,
"could not initialize continuous stats updates
\n
"
);
goto
error
;
}
new_thread
(
receive_thread
,
flexran
);
...
...
openair2/ENB_APP/flexran_agent_handler.c
View file @
f02b5392
...
...
@@ -730,7 +730,7 @@ err_code_t flexran_agent_init_cont_stats_update(mid_t mod_id) {
stats_context
[
mod_id
].
mutex
=
calloc
(
1
,
sizeof
(
pthread_mutex_t
));
if
(
stats_context
[
mod_id
].
mutex
==
NULL
)
goto
error
;
if
(
pthread_mutex_init
(
stats_context
[
mod_id
].
mutex
,
NULL
))
if
(
pthread_mutex_init
(
stats_context
[
mod_id
].
mutex
,
NULL
)
!=
0
)
goto
error
;
return
0
;
...
...
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