Set thread names for FlexRAN and PROTO rx_thread
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user