Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
b9e03cf2
Commit
b9e03cf2
authored
8 years ago
by
Laurent
Browse files
Options
Downloads
Patches
Plain Diff
fix usrp thread priority
parent
3c191c26
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/utils/T/T.h
+12
-0
12 additions, 0 deletions
common/utils/T/T.h
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+1
-1
1 addition, 1 deletion
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
with
13 additions
and
1 deletion
common/utils/T/T.h
+
12
−
0
View file @
b9e03cf2
...
@@ -188,6 +188,12 @@ extern T_cache_t *T_cache;
...
@@ -188,6 +188,12 @@ extern T_cache_t *T_cache;
#define T_HEADER(x) \
#define T_HEADER(x) \
do { \
do { \
if (!__builtin_types_compatible_p(typeof(x), struct T_header *)) { \
printf("%s:%d:%s: " \
"bad use of T, pass a message ID as first parameter\n", \
__FILE__, __LINE__, __FUNCTION__); \
abort(); \
} \
struct timespec T_HEADER_time; \
struct timespec T_HEADER_time; \
if (clock_gettime(CLOCK_REALTIME, &T_HEADER_time)) abort(); \
if (clock_gettime(CLOCK_REALTIME, &T_HEADER_time)) abort(); \
memcpy(T_LOCAL_buf, &T_HEADER_time, sizeof(struct timespec)); \
memcpy(T_LOCAL_buf, &T_HEADER_time, sizeof(struct timespec)); \
...
@@ -199,6 +205,12 @@ extern T_cache_t *T_cache;
...
@@ -199,6 +205,12 @@ extern T_cache_t *T_cache;
#define T_HEADER(x) \
#define T_HEADER(x) \
do { \
do { \
if (!__builtin_types_compatible_p(typeof(x), struct T_header *)) { \
printf("%s:%d:%s: " \
"bad use of T, pass a message ID as first parameter\n", \
__FILE__, __LINE__, __FUNCTION__); \
abort(); \
} \
T_PUT_int(1, (int)(uintptr_t)(x)); \
T_PUT_int(1, (int)(uintptr_t)(x)); \
} while (0)
} while (0)
...
...
This diff is collapsed.
Click to expand it.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+
1
−
1
View file @
b9e03cf2
...
@@ -469,7 +469,7 @@ extern "C" {
...
@@ -469,7 +469,7 @@ extern "C" {
* \param openair0_cfg RF frontend parameters set by application
* \param openair0_cfg RF frontend parameters set by application
*/
*/
int
device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
)
{
int
device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
)
{
//
uhd::set_thread_priority_safe(1.0);
uhd
::
set_thread_priority_safe
(
1.0
);
usrp_state_t
*
s
=
(
usrp_state_t
*
)
calloc
(
sizeof
(
usrp_state_t
),
1
);
usrp_state_t
*
s
=
(
usrp_state_t
*
)
calloc
(
sizeof
(
usrp_state_t
),
1
);
// Initialize USRP device
// Initialize USRP device
device
->
openair0_cfg
=
openair0_cfg
;
device
->
openair0_cfg
=
openair0_cfg
;
...
...
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