Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
e015b521
Commit
e015b521
authored
7 years ago
by
Younes Khadraoui
Browse files
Options
Downloads
Patches
Plain Diff
bugfix
parent
b5a28996
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!650
Release v1.1.0 Candidate
,
!617
Develop: Integration 2019 Week 25
,
!588
Develop nr merge
,
!576
Multi-RU support and OTA Synch/Calibration for TDD
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
targets/RT/USER/lte-ru.c
+16
-15
16 additions, 15 deletions
targets/RT/USER/lte-ru.c
with
16 additions
and
15 deletions
targets/RT/USER/lte-ru.c
+
16
−
15
View file @
e015b521
...
...
@@ -1566,13 +1566,6 @@ static void* ru_thread_control( void* param ) {
ru
->
state
=
RU_RUN
;
// TODO: Start ru_thread
proc
->
instance_cnt_ru
=
1
;
if
(
pthread_cond_signal
(
&
proc
->
cond_ru_thread
)
!=
0
)
{
LOG_E
(
PHY
,
"ERROR pthread_cond_signal for RU %d
\n
"
,
ru
->
idx
);
exit_fun
(
"ERROR pthread_cond_signal"
);
break
;
}
LOG_I
(
PHY
,
"Signaling main thread that RU %d is ready
\n
"
,
ru
->
idx
);
pthread_mutex_lock
(
&
RC
.
ru_mutex
);
...
...
@@ -1581,6 +1574,14 @@ static void* ru_thread_control( void* param ) {
pthread_mutex_unlock
(
&
RC
.
ru_mutex
);
wait_sync
(
"ru_thread"
);
// TODO: Start ru_thread
proc
->
instance_cnt_ru
=
1
;
if
(
pthread_cond_signal
(
&
proc
->
cond_ru_thread
)
!=
0
)
{
LOG_E
(
PHY
,
"ERROR pthread_cond_signal for RU %d
\n
"
,
ru
->
idx
);
exit_fun
(
"ERROR pthread_cond_signal"
);
break
;
}
}
break
;
...
...
@@ -1589,14 +1590,6 @@ static void* ru_thread_control( void* param ) {
LOG_I
(
PHY
,
"Start received from RAU
\n
"
);
if
(
ru
->
state
==
RU_READY
){
// TODO: Start ru_thread
ru
->
state
=
RU_RUN
;
proc
->
instance_cnt_ru
=
1
;
if
(
pthread_cond_signal
(
&
proc
->
cond_ru_thread
)
!=
0
)
{
LOG_E
(
PHY
,
"ERROR pthread_cond_signal for RU %d
\n
"
,
ru
->
idx
);
exit_fun
(
"ERROR pthread_cond_signal"
);
break
;
}
LOG_I
(
PHY
,
"Signaling main thread that RU %d is ready
\n
"
,
ru
->
idx
);
pthread_mutex_lock
(
&
RC
.
ru_mutex
);
...
...
@@ -1605,6 +1598,14 @@ static void* ru_thread_control( void* param ) {
pthread_mutex_unlock
(
&
RC
.
ru_mutex
);
wait_sync
(
"ru_thread"
);
// TODO: Start ru_thread
ru
->
state
=
RU_RUN
;
proc
->
instance_cnt_ru
=
1
;
if
(
pthread_cond_signal
(
&
proc
->
cond_ru_thread
)
!=
0
)
{
LOG_E
(
PHY
,
"ERROR pthread_cond_signal for RU %d
\n
"
,
ru
->
idx
);
exit_fun
(
"ERROR pthread_cond_signal"
);
break
;
}
}
else
{
LOG_I
(
PHY
,
"RRU not ready, cannot start
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment