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
ZhouShuya
OpenXG-RAN
Commits
682888c7
Commit
682888c7
authored
Jul 16, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added mutex to not allow two simultaneous SLSCH decoding
parent
2ce76e77
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
openair1/PHY/defs.h
openair1/PHY/defs.h
+1
-0
openair1/SCHED/phy_procedures_lte_ue.c
openair1/SCHED/phy_procedures_lte_ue.c
+3
-0
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+1
-0
No files found.
openair1/PHY/defs.h
View file @
682888c7
...
...
@@ -1341,6 +1341,7 @@ typedef struct {
pthread_mutex_t
slss_mutex
;
pthread_mutex_t
sldch_mutex
;
pthread_mutex_t
slsch_mutex
;
pthread_mutex_t
slsch_rx_mutex
;
int
slbch_errors
;
int
slbch_rxops
;
//Paging parameters
...
...
openair1/SCHED/phy_procedures_lte_ue.c
View file @
682888c7
...
...
@@ -4801,10 +4801,13 @@ void phy_procedures_UE_SL_RX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc) {
if
(
ue
->
is_SynchRef
==
0
&&
frame_rx
==
0
&&
subframe_rx
==
0
)
LOG_I
(
PHY
,
"Connected with SyncRef UE (slbch errors %d/%d)
\n
"
,
ue
->
slbch_errors
,
ue
->
slbch_rxops
);
AssertFatal
(
0
==
pthread_mutex_lock
(
&
ue
->
slsch_rx_mutex
),
""
);
rx_slcch
(
ue
,
proc
,
frame_rx
,
subframe_rx
);
rx_slsch
(
ue
,
proc
,
frame_rx
,
subframe_rx
);
AssertFatal
(
0
==
pthread_mutex_unlock
(
&
ue
->
slsch_rx_mutex
),
""
);
if
(
frame_rx
==
0
&&
subframe_rx
==
0
)
{
for
(
int
i
=
0
;
i
<
MAX_SLDCH
;
i
++
)
if
(
ue
->
sldch_rxcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_psdch %d RX count %d
\n
"
,
i
,
ue
->
sldch_rxcnt
[
i
]);
for
(
int
i
=
0
;
i
<
4
;
i
++
)
if
(
ue
->
slsch_rxcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_pssch[%d] rx count %d
\n
"
,
i
,
ue
->
slsch_rxcnt
[
i
]);
...
...
targets/RT/USER/lte-ue.c
View file @
682888c7
...
...
@@ -1639,6 +1639,7 @@ void init_UE_threads(int inst) {
pthread_mutex_init
(
&
UE
->
slss_mutex
,
NULL
);
pthread_mutex_init
(
&
UE
->
sldch_mutex
,
NULL
);
pthread_mutex_init
(
&
UE
->
slsch_mutex
,
NULL
);
pthread_mutex_init
(
&
UE
->
slsch_rx_mutex
,
NULL
);
pthread_create
(
&
UE
->
proc
.
pthread_synchSL
,
NULL
,
UE_thread_synchSL
,(
void
*
)
UE
);
}
}
...
...
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