still to compile
This commit is contained in:
@@ -102,7 +102,6 @@ void *flexran_agent_task(void *args){
|
||||
}
|
||||
|
||||
void *receive_thread(void *args) {
|
||||
threadTopInit("flexran",-1,OAI_PRIORITY_RT_LOW);
|
||||
|
||||
flexran_agent_info_t *d = args;
|
||||
void *data;
|
||||
|
||||
@@ -53,7 +53,6 @@
|
||||
|
||||
|
||||
extern pthread_t pdcp_thread;
|
||||
extern pthread_attr_t pdcp_thread_attr;
|
||||
extern pthread_mutex_t pdcp_mutex;
|
||||
extern pthread_cond_t pdcp_cond;
|
||||
extern int pdcp_instance_cnt;
|
||||
|
||||
@@ -97,8 +97,6 @@ pdcp_netlink_init(
|
||||
int i;
|
||||
int nb_inst_enb;
|
||||
int nb_inst_ue;
|
||||
pthread_attr_t attr;
|
||||
struct sched_param sched_param;
|
||||
|
||||
reset_meas(&ip_pdcp_stats_tmp);
|
||||
nb_inst_enb = 1;
|
||||
@@ -141,28 +139,12 @@ pdcp_netlink_init(
|
||||
}
|
||||
|
||||
if ((nb_inst_ue + nb_inst_enb) > 0) {
|
||||
if (pthread_attr_init(&attr) != 0) {
|
||||
LOG_E(PDCP, "[NETLINK]Failed to initialize pthread attribute for Netlink -> PDCP communication (%d:%s)\n",
|
||||
errno, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
sched_param.sched_priority = 10;
|
||||
|
||||
pthread_attr_setschedpolicy(&attr, SCHED_RR);
|
||||
pthread_attr_setschedparam(&attr, &sched_param);
|
||||
|
||||
/* Create one thread that fetchs packets from the netlink.
|
||||
* When the netlink fifo is full, packets are silently dropped, this behaviour
|
||||
* should be avoided if we want a reliable link.
|
||||
*/
|
||||
if (pthread_create(&pdcp_netlink_thread, &attr, pdcp_netlink_thread_fct, NULL) != 0) {
|
||||
LOG_E(PDCP, "[NETLINK]Failed to create new thread for Netlink/PDCP communication (%d:%s)\n",
|
||||
errno, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
pthread_setname_np( pdcp_netlink_thread, "PDCP netlink" );
|
||||
threadCreate(&pdcp_netlink_thread, pdcp_netlink_thread_fct, "PDCP netlink", -1, OAI_PRIORITY_RT_LOW );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -45,7 +45,6 @@ extern int oai_exit;
|
||||
extern char UE_flag;
|
||||
|
||||
pthread_t pdcp_thread;
|
||||
pthread_attr_t pdcp_thread_attr;
|
||||
pthread_mutex_t pdcp_mutex;
|
||||
pthread_cond_t pdcp_cond;
|
||||
int pdcp_instance_cnt;
|
||||
|
||||
@@ -5477,7 +5477,6 @@ rrc_ue_process_sidelink_radioResourceConfig(
|
||||
void rrc_control_socket_init(){
|
||||
|
||||
struct sockaddr_in rrc_ctrl_socket_addr;
|
||||
pthread_attr_t attr;
|
||||
int optval; // flag value for setsockopt
|
||||
//int n; // message byte size
|
||||
|
||||
@@ -5506,7 +5505,6 @@ void rrc_control_socket_init(){
|
||||
exit(1);
|
||||
}
|
||||
|
||||
threadTopInit("RRC Control Socket",-1,OAI_PRIORITY_RT);
|
||||
pthread_t rrc_control_socket_thread;
|
||||
|
||||
threadCreate(&rrc_control_socket_thread, rrc_control_socket_thread_fct, NULL, "RRC/ProSeApp", -1, OAI_PRIORITY_RT);
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "link_manager.h"
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include <common/utils/assertions.h>
|
||||
#include <common/utils/system.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -104,9 +105,7 @@ link_manager_t *create_link_manager(
|
||||
|
||||
LOG_D(MAC, "create new link manager\n");
|
||||
|
||||
ret = calloc(1, sizeof(link_manager_t));
|
||||
if (ret == NULL)
|
||||
goto error;
|
||||
AssertFatal( (ret=calloc(1, sizeof(link_manager_t))) != NULL,"");
|
||||
|
||||
ret->send_queue = send_queue;
|
||||
ret->receive_queue = receive_queue;
|
||||
|
||||
Reference in New Issue
Block a user