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
wangwenhui
OpenXG-RAN
Commits
71a98a97
Commit
71a98a97
authored
Mar 16, 2018
by
Wang Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix for killing thread
parent
8d90eda6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
9 deletions
+19
-9
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
+1
-0
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
+1
-0
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+2
-2
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+2
-0
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+13
-7
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
View file @
71a98a97
...
...
@@ -368,6 +368,7 @@ void *te_thread(void *param) {
while
(
!
oai_exit
)
{
if
(
wait_on_condition
(
&
tep
->
mutex_te
,
&
tep
->
cond_te
,
&
tep
->
instance_cnt_te
,
"te thread"
)
<
0
)
break
;
if
(
oai_exit
)
break
;
dlsch_encoding_2threads0
(
tep
);
...
...
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
View file @
71a98a97
...
...
@@ -428,6 +428,7 @@ void *td_thread(void *param) {
while
(
!
oai_exit
)
{
if
(
wait_on_condition
(
&
proc
->
mutex_td
,
&
proc
->
cond_td
,
&
proc
->
instance_cnt_td
,
"td thread"
)
<
0
)
break
;
if
(
oai_exit
)
break
;
((
td_params
*
)
param
)
->
ret
=
ulsch_decoding_data_2thread0
((
td_params
*
)
param
);
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
71a98a97
...
...
@@ -1415,8 +1415,8 @@ void kill_te_thread(PHY_VARS_eNB *eNB) {
proc
->
tep
[
i
].
instance_cnt_te
=
0
;
pthread_cond_signal
(
&
proc
->
tep
[
i
].
cond_te
);
pthread_join
(
proc
->
tep
[
i
].
pthread_te
,
NULL
);
pthread_mutex_
init
(
&
proc
->
tep
[
i
].
mutex_te
,
NULL
);
pthread_cond_
init
(
&
proc
->
tep
[
i
].
cond_te
,
NULL
);
pthread_mutex_
destroy
(
&
proc
->
tep
[
i
].
mutex_te
);
pthread_cond_
destroy
(
&
proc
->
tep
[
i
].
cond_te
);
}
}
...
...
targets/RT/USER/lte-enb.c
View file @
71a98a97
...
...
@@ -1040,6 +1040,8 @@ void kill_eNB_proc(int inst) {
for
(
i
=
0
;
i
<
2
;
i
++
)
{
pthread_mutex_lock
(
&
proc_rxtx
[
i
].
mutex_rxtx
);
proc_rxtx
[
i
].
instance_cnt_rxtx
=
0
;
proc_rxtx
[
i
].
pipe_ready
=
0
;
pthread_cond_signal
(
&
proc_rxtx
[
i
].
cond_rxtx
);
pthread_mutex_unlock
(
&
proc_rxtx
[
i
].
mutex_rxtx
);
}
proc
->
instance_cnt_prach
=
0
;
...
...
targets/RT/USER/lte-ru.c
View file @
71a98a97
...
...
@@ -1901,35 +1901,41 @@ void kill_RU_proc(int inst)
pthread_mutex_lock
(
&
proc
->
mutex_FH
);
proc
->
instance_cnt_FH
=
0
;
pthread_mutex_unlock
(
&
proc
->
mutex_FH
);
pthread_cond_signal
(
&
proc
->
cond_FH
);
pthread_mutex_unlock
(
&
proc
->
mutex_FH
);
pthread_mutex_lock
(
&
proc
->
mutex_FH1
);
proc
->
instance_cnt_FH1
=
0
;
pthread_cond_signal
(
&
proc
->
cond_FH1
);
pthread_mutex_unlock
(
&
proc
->
mutex_FH1
);
pthread_mutex_lock
(
&
proc
->
mutex_prach
);
proc
->
instance_cnt_prach
=
0
;
pthread_mutex_unlock
(
&
proc
->
mutex_prach
);
pthread_cond_signal
(
&
proc
->
cond_prach
);
pthread_mutex_unlock
(
&
proc
->
mutex_prach
);
#ifdef Rel14
pthread_mutex_lock
(
&
proc
->
mutex_prach_br
);
proc
->
instance_cnt_prach_br
=
0
;
pthread_mutex_unlock
(
&
proc
->
mutex_prach_br
);
pthread_cond_signal
(
&
proc
->
cond_prach_br
);
pthread_mutex_unlock
(
&
proc
->
mutex_prach_br
);
#endif
pthread_mutex_lock
(
&
proc
->
mutex_synch
);
proc
->
instance_cnt_synch
=
0
;
pthread_mutex_unlock
(
&
proc
->
mutex_synch
);
pthread_cond_signal
(
&
proc
->
cond_synch
);
pthread_mutex_unlock
(
&
proc
->
mutex_synch
);
pthread_mutex_lock
(
&
proc
->
mutex_eNBs
);
proc
->
ru_tx_ready
=
0
;
proc
->
instance_cnt_eNBs
=
0
;
pthread_mutex_unlock
(
&
proc
->
mutex_eNBs
);
pthread_cond_signal
(
&
proc
->
cond_eNBs
);
pthread_mutex_unlock
(
&
proc
->
mutex_eNBs
);
pthread_mutex_lock
(
&
proc
->
mutex_asynch_rxtx
);
proc
->
instance_cnt_asynch_rxtx
=
0
;
pthread_mutex_unlock
(
&
proc
->
mutex_asynch_rxtx
);
pthread_cond_signal
(
&
proc
->
cond_asynch_rxtx
);
pthread_mutex_unlock
(
&
proc
->
mutex_asynch_rxtx
);
LOG_D
(
PHY
,
"Joining pthread_FH
\n
"
);
pthread_join
(
proc
->
pthread_FH
,
NULL
);
...
...
@@ -1952,7 +1958,7 @@ void kill_RU_proc(int inst)
pthread_join
(
proc
->
pthread_asynch_rxtx
,
NULL
);
}
}
if
(
get_nprocs
()
>=
2
)
{
if
(
get_nprocs
()
>=
2
&&
fepw
)
{
if
(
ru
->
feprx
)
{
pthread_mutex_lock
(
&
proc
->
mutex_fep
);
proc
->
instance_cnt_fep
=
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