Move constructor gprs_rlcmac_dl_tbf::BandWidth to correct file
Change-Id: I7587fd2ee97424020a099a8513f95544d6635f3d
This commit is contained in:
parent
9767e44fd4
commit
834cbab97d
10
src/tbf.cpp
10
src/tbf.cpp
|
@ -1036,16 +1036,6 @@ struct gprs_rlcmac_ul_tbf *tbf_alloc_ul_tbf(struct gprs_rlcmac_bts *bts, GprsMs
|
||||||
return tbf;
|
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)
|
static int dl_tbf_dtor(struct gprs_rlcmac_dl_tbf *tbf)
|
||||||
{
|
{
|
||||||
tbf->~gprs_rlcmac_dl_tbf();
|
tbf->~gprs_rlcmac_dl_tbf();
|
||||||
|
|
|
@ -75,6 +75,16 @@ static void llc_timer_cb(void *_tbf)
|
||||||
tbf->request_dl_ack();
|
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_dl_tbf::gprs_rlcmac_dl_tbf(BTS *bts_) :
|
||||||
gprs_rlcmac_tbf(bts_, GPRS_RLCMAC_DL_TBF),
|
gprs_rlcmac_tbf(bts_, GPRS_RLCMAC_DL_TBF),
|
||||||
m_tx_counter(0),
|
m_tx_counter(0),
|
||||||
|
|
Loading…
Reference in New Issue