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
alex037yang
OpenXG-RAN
Commits
f01c78e5
Commit
f01c78e5
authored
Oct 28, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set thread names for FlexRAN and PROTO rx_thread
parent
12905526
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
openair2/ENB_APP/flexran_agent.c
openair2/ENB_APP/flexran_agent.c
+3
-1
openair2/LAYER2/PROTO_AGENT/proto_agent.c
openair2/LAYER2/PROTO_AGENT/proto_agent.c
+4
-0
No files found.
openair2/ENB_APP/flexran_agent.c
View file @
f01c78e5
...
...
@@ -26,11 +26,12 @@
* \version 0.1
*/
#define _GNU_SOURCE
#include "flexran_agent.h"
#include <pthread.h>
#include <arpa/inet.h>
void
*
send_thread
(
void
*
args
);
void
*
receive_thread
(
void
*
args
);
pthread_t
new_thread
(
void
*
(
*
f
)(
void
*
),
void
*
b
);
Protocol__FlexranMessage
*
flexran_agent_timeout
(
void
*
args
);
...
...
@@ -110,6 +111,7 @@ void *receive_thread(void *args) {
err_code_t
err_code
=
0
;
Protocol__FlexranMessage
*
msg
;
pthread_setname_np
(
pthread_self
(),
"flexran_rx_thr"
);
while
(
1
)
{
...
...
openair2/LAYER2/PROTO_AGENT/proto_agent.c
View file @
f01c78e5
...
...
@@ -33,6 +33,7 @@
* \date 2016
* \version 0.1
*/
#define _GNU_SOURCE
#include "proto_agent_common.h"
#include "common/utils/LOG/log.h"
#include "proto_agent.h"
...
...
@@ -40,6 +41,8 @@
#include "proto_agent_net_comm.h"
#include "proto_agent_async.h"
#include <pthread.h>
#define ENB_AGENT_MAX 9
proto_agent_instance_t
proto_agent
[
MAX_DU
];
...
...
@@ -250,6 +253,7 @@ proto_agent_receive(void *args)
int
priority
;
err_code_t
err_code
;
pthread_setname_np
(
pthread_self
(),
"proto_rx"
);
Protocol__FlexsplitMessage
*
msg
;
uint8_t
*
ser_msg
;
...
...
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