@@ -47,17 +47,17 @@ class f1u_gateway_cu_bearer : public f1u_cu_up_gateway_bearer
4747
4848 void stop () override { disconnector.disconnect_cu_bearer (ul_tnl_info); }
4949
50- void attach_du_handler (srs_du::f1u_du_gateway_bearer_rx_notifier& handler_ ,
51- const up_transport_layer_info& dl_tnl_info_)
50+ void attach_du_notifier (srs_du::f1u_du_gateway_bearer_rx_notifier& notifier_ ,
51+ const up_transport_layer_info& dl_tnl_info_)
5252 {
53- handler = &handler_ ;
53+ notifier = ¬ifier_ ;
5454 dl_tnl_info.emplace (dl_tnl_info_);
5555 }
5656
57- void detach_du_handler (const up_transport_layer_info& dl_tnl_info_)
57+ void detach_du_notifier (const up_transport_layer_info& dl_tnl_info_)
5858 {
5959 if (dl_tnl_info == dl_tnl_info_) {
60- handler = nullptr ;
60+ notifier = nullptr ;
6161 dl_tnl_info.reset ();
6262 } else {
6363 logger.log_info (" Cannot dettach DU bearer, DL-FTEID does not match. F-TEID={}, requested F-TEID={}" ,
@@ -66,20 +66,19 @@ class f1u_gateway_cu_bearer : public f1u_cu_up_gateway_bearer
6666 }
6767 }
6868
69- // / This should be handle_sdu...
7069 void on_new_pdu (nru_dl_message msg) override
7170 {
72- if (handler == nullptr ) {
71+ if (notifier == nullptr ) {
7372 logger.log_info (" Cannot handle F1-U GW DL message. F1-U DU GW bearer does not exist." );
7473 return ;
7574 }
7675 logger.log_debug (" Passing PDU to DU bearer. {}" , dl_tnl_info);
77- handler ->on_new_pdu (std::move (msg));
76+ notifier ->on_new_pdu (std::move (msg));
7877 }
7978
8079private:
8180 srs_cu_up::f1u_bearer_logger logger;
82- srs_du::f1u_du_gateway_bearer_rx_notifier* handler = nullptr ;
81+ srs_du::f1u_du_gateway_bearer_rx_notifier* notifier = nullptr ;
8382 srs_cu_up::f1u_bearer_disconnector& disconnector;
8483 up_transport_layer_info ul_tnl_info;
8584
@@ -115,26 +114,26 @@ class f1u_gateway_du_bearer : public srs_du::f1u_du_gateway_bearer
115114
116115 void stop () override { disconnector.remove_du_bearer (dl_tnl_info); }
117116
118- void attach_cu_handler (f1u_cu_up_gateway_bearer_rx_notifier& handler_)
117+ void attach_cu_notifier (f1u_cu_up_gateway_bearer_rx_notifier& handler_)
119118 {
120- std::unique_lock<std::mutex> lock (handler_mutex );
121- handler = &handler_;
119+ std::unique_lock<std::mutex> lock (notifier_mutex );
120+ notifier = &handler_;
122121 }
123122
124- void detach_cu_handler ()
123+ void detach_cu_notifier ()
125124 {
126- std::unique_lock<std::mutex> lock (handler_mutex );
127- handler = nullptr ;
125+ std::unique_lock<std::mutex> lock (notifier_mutex );
126+ notifier = nullptr ;
128127 }
129128
130129 void on_new_pdu (nru_ul_message msg) override
131130 {
132- std::unique_lock<std::mutex> lock (handler_mutex );
133- if (handler == nullptr ) {
131+ std::unique_lock<std::mutex> lock (notifier_mutex );
132+ if (notifier == nullptr ) {
134133 logger.log_info (" Cannot handle NR-U UL message. CU-UP bearer does not exist." );
135134 return ;
136135 }
137- handler ->on_new_pdu (std::move (msg));
136+ notifier ->on_new_pdu (std::move (msg));
138137 };
139138
140139 srs_du::f1u_du_gateway_bearer_rx_notifier* f1u_rx = nullptr ;
@@ -143,8 +142,8 @@ class f1u_gateway_du_bearer : public srs_du::f1u_du_gateway_bearer
143142
144143 srs_du::f1u_bearer_logger logger;
145144
146- f1u_cu_up_gateway_bearer_rx_notifier* handler = nullptr ;
147- std::mutex handler_mutex ;
145+ f1u_cu_up_gateway_bearer_rx_notifier* notifier = nullptr ;
146+ std::mutex notifier_mutex ;
148147 srs_du::f1u_bearer_disconnector& disconnector;
149148};
150149
0 commit comments