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
常顺宇
OpenXG-RAN
Commits
98044041
Commit
98044041
authored
Feb 11, 2015
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6525
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
80957a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
28 deletions
+11
-28
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+11
-28
No files found.
targets/RT/USER/lte-ue.c
View file @
98044041
...
@@ -111,19 +111,9 @@ struct sched_param sched_param_UE_init_synch;
...
@@ -111,19 +111,9 @@ struct sched_param sched_param_UE_init_synch;
struct
sched_param
sched_param_UE_thread_tx
;
struct
sched_param
sched_param_UE_thread_tx
;
struct
sched_param
sched_param_UE_thread_rx
;
struct
sched_param
sched_param_UE_thread_rx
;
#ifdef RTAI
extern
SEM
*
mutex
;
//static CND *cond;
extern
SEM
*
sync_sem
;
// to sync rx & tx streaming
//static int sync_thread;
#else
extern
pthread_cond_t
sync_cond
;
extern
pthread_cond_t
sync_cond
;
extern
pthread_mutex_t
sync_mutex
;
extern
pthread_mutex_t
sync_mutex
;
extern
int
sync_var
;
extern
int
sync_var
;
#endif
extern
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
extern
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
extern
uint32_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
extern
uint32_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
...
@@ -453,8 +443,6 @@ static void *UE_thread_tx(void *arg) {
...
@@ -453,8 +443,6 @@ static void *UE_thread_tx(void *arg) {
pthread_mutex_unlock
(
&
sync_mutex
);
pthread_mutex_unlock
(
&
sync_mutex
);
printf
(
"unlocked sync_mutex, waiting (UE_thread_tx)
\n
"
);
printf
(
"unlocked sync_mutex, waiting (UE_thread_tx)
\n
"
);
printf
(
"Starting UE TX thread
\n
"
);
printf
(
"Starting UE TX thread
\n
"
);
mlockall
(
MCL_CURRENT
|
MCL_FUTURE
);
mlockall
(
MCL_CURRENT
|
MCL_FUTURE
);
...
@@ -585,19 +573,14 @@ static void *UE_thread_rx(void *arg) {
...
@@ -585,19 +573,14 @@ static void *UE_thread_rx(void *arg) {
mlockall
(
MCL_CURRENT
|
MCL_FUTURE
);
mlockall
(
MCL_CURRENT
|
MCL_FUTURE
);
#ifndef EXMIMO
printf
(
"waiting for sync (UE_thread_rx)
\n
"
);
printf
(
"waiting for sync (UE_thread_rx)
\n
"
);
#ifdef RTAI
rt_sem_wait
(
sync_sem
);
#else
pthread_mutex_lock
(
&
sync_mutex
);
pthread_mutex_lock
(
&
sync_mutex
);
printf
(
"Locked sync_mutex, waiting (UE_thread_rx)
\n
"
);
printf
(
"Locked sync_mutex, waiting (UE_thread_rx)
\n
"
);
while
(
sync_var
<
0
)
while
(
sync_var
<
0
)
pthread_cond_wait
(
&
sync_cond
,
&
sync_mutex
);
pthread_cond_wait
(
&
sync_cond
,
&
sync_mutex
);
pthread_mutex_unlock
(
&
sync_mutex
);
pthread_mutex_unlock
(
&
sync_mutex
);
printf
(
"unlocked sync_mutex, waiting (UE_thread_rx)
\n
"
);
printf
(
"unlocked sync_mutex, waiting (UE_thread_rx)
\n
"
);
#endif
#endif
printf
(
"Starting UE RX thread
\n
"
);
printf
(
"Starting UE RX thread
\n
"
);
...
@@ -672,17 +655,17 @@ static void *UE_thread_rx(void *arg) {
...
@@ -672,17 +655,17 @@ static void *UE_thread_rx(void *arg) {
printf
(
"[openair][SCHED][eNB] error locking mutex for UE RX
\n
"
);
printf
(
"[openair][SCHED][eNB] error locking mutex for UE RX
\n
"
);
}
}
else
{
else
{
UE
->
instance_cnt_rx
--
;
UE
->
instance_cnt_rx
--
;
if
(
pthread_mutex_unlock
(
&
UE
->
mutex_rx
)
!=
0
)
{
if
(
pthread_mutex_unlock
(
&
UE
->
mutex_rx
)
!=
0
)
{
printf
(
"[openair][SCHED][eNB] error unlocking mutex for UE RX
\n
"
);
printf
(
"[openair][SCHED][eNB] error unlocking mutex for UE RX
\n
"
);
}
}
}
}
// printf("UE_thread_rx done\n");
// printf("UE_thread_rx done\n");
}
}
}
}
return
(
0
);
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