Move constructor gprs_rlcmac_dl_tbf::BandWidth to correct file

Change-Id: I7587fd2ee97424020a099a8513f95544d6635f3d
This commit is contained in:
Pau Espin 2020-10-23 22:17:01 +02:00 committed by laforge
parent 9767e44fd4
commit 834cbab97d
2 changed files with 10 additions and 10 deletions

View File

@ -1036,16 +1036,6 @@ struct gprs_rlcmac_ul_tbf *tbf_alloc_ul_tbf(struct gprs_rlcmac_bts *bts, GprsMs
return tbf;
}
gprs_rlcmac_dl_tbf::BandWidth::BandWidth() :
dl_bw_octets(0),
dl_throughput(0),
dl_loss_lost(0),
dl_loss_received(0)
{
timespecclear(&dl_bw_tv);
timespecclear(&dl_loss_tv);
}
static int dl_tbf_dtor(struct gprs_rlcmac_dl_tbf *tbf)
{
tbf->~gprs_rlcmac_dl_tbf();

View File

@ -75,6 +75,16 @@ static void llc_timer_cb(void *_tbf)
tbf->request_dl_ack();
}
gprs_rlcmac_dl_tbf::BandWidth::BandWidth() :
dl_bw_octets(0),
dl_throughput(0),
dl_loss_lost(0),
dl_loss_received(0)
{
timespecclear(&dl_bw_tv);
timespecclear(&dl_loss_tv);
}
gprs_rlcmac_dl_tbf::gprs_rlcmac_dl_tbf(BTS *bts_) :
gprs_rlcmac_tbf(bts_, GPRS_RLCMAC_DL_TBF),
m_tx_counter(0),