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
Michael Black
OpenXG-RAN
Commits
175d28ee
Commit
175d28ee
authored
May 03, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixes kill_eNB_proc()
* put mutex lock around instance_prach * destroy attributes
parent
917b9ca0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+12
-0
No files found.
targets/RT/USER/lte-enb.c
View file @
175d28ee
...
...
@@ -1043,8 +1043,10 @@ void kill_eNB_proc(int inst) {
pthread_cond_signal
(
&
proc_rxtx
[
i
].
cond_rxtx
);
pthread_mutex_unlock
(
&
proc_rxtx
[
i
].
mutex_rxtx
);
}
pthread_mutex_lock
(
&
proc
->
mutex_prach
);
proc
->
instance_cnt_prach
=
0
;
pthread_cond_signal
(
&
proc
->
cond_prach
);
pthread_mutex_unlock
(
&
proc
->
mutex_prach
);
pthread_cond_signal
(
&
proc
->
cond_asynch_rxtx
);
pthread_cond_broadcast
(
&
sync_phy_proc
.
cond_phy_proc_tx
);
...
...
@@ -1071,6 +1073,16 @@ void kill_eNB_proc(int inst) {
pthread_mutex_destroy
(
&
proc_rxtx
[
i
].
mutex_rxtx
);
pthread_cond_destroy
(
&
proc_rxtx
[
i
].
cond_rxtx
);
}
pthread_attr_destroy
(
&
proc
->
attr_prach
);
pthread_attr_destroy
(
&
proc
->
attr_asynch_rxtx
);
pthread_attr_destroy
(
&
proc_rxtx
[
0
].
attr_rxtx
);
pthread_attr_destroy
(
&
proc_rxtx
[
1
].
attr_rxtx
);
#ifdef Rel14
pthread_mutex_destroy
(
&
proc
->
mutex_RU_PRACH_br
);
pthread_attr_destroy
(
&
proc
->
attr_prach_br
);
#endif
}
}
...
...
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