Commit f01c78e5 authored by Robert Schmidt's avatar Robert Schmidt

Set thread names for FlexRAN and PROTO rx_thread

parent 12905526
...@@ -26,11 +26,12 @@ ...@@ -26,11 +26,12 @@
* \version 0.1 * \version 0.1
*/ */
#define _GNU_SOURCE
#include "flexran_agent.h" #include "flexran_agent.h"
#include <pthread.h>
#include <arpa/inet.h> #include <arpa/inet.h>
void *send_thread(void *args);
void *receive_thread(void *args); void *receive_thread(void *args);
pthread_t new_thread(void *(*f)(void *), void *b); pthread_t new_thread(void *(*f)(void *), void *b);
Protocol__FlexranMessage *flexran_agent_timeout(void* args); Protocol__FlexranMessage *flexran_agent_timeout(void* args);
...@@ -110,6 +111,7 @@ void *receive_thread(void *args) { ...@@ -110,6 +111,7 @@ void *receive_thread(void *args) {
err_code_t err_code=0; err_code_t err_code=0;
Protocol__FlexranMessage *msg; Protocol__FlexranMessage *msg;
pthread_setname_np(pthread_self(), "flexran_rx_thr");
while (1) { while (1) {
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
* \date 2016 * \date 2016
* \version 0.1 * \version 0.1
*/ */
#define _GNU_SOURCE
#include "proto_agent_common.h" #include "proto_agent_common.h"
#include "common/utils/LOG/log.h" #include "common/utils/LOG/log.h"
#include "proto_agent.h" #include "proto_agent.h"
...@@ -40,6 +41,8 @@ ...@@ -40,6 +41,8 @@
#include "proto_agent_net_comm.h" #include "proto_agent_net_comm.h"
#include "proto_agent_async.h" #include "proto_agent_async.h"
#include <pthread.h>
#define ENB_AGENT_MAX 9 #define ENB_AGENT_MAX 9
proto_agent_instance_t proto_agent[MAX_DU]; proto_agent_instance_t proto_agent[MAX_DU];
...@@ -250,6 +253,7 @@ proto_agent_receive(void *args) ...@@ -250,6 +253,7 @@ proto_agent_receive(void *args)
int priority; int priority;
err_code_t err_code; err_code_t err_code;
pthread_setname_np(pthread_self(), "proto_rx");
Protocol__FlexsplitMessage *msg; Protocol__FlexsplitMessage *msg;
uint8_t *ser_msg; uint8_t *ser_msg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment