aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_data.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-26 18:01:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:11 +0100
commit86300bbeea0601e2a1be34021f438433b5f01a27 (patch)
tree86d5c58c9c36f964b711df21e40206bf88786037 /src/gprs_rlcmac_data.cpp
parentaf8094d7995daccd5255b6f7450c3faef6409ef1 (diff)
tbf: Move the timer routine into the class
The timer is used for various timeouts and there is still external client code that is calling it. In a perfect world the client code would indicate that an event has happened and the internal timer will be stopped. The best compromise is the "stop_t3191" method. It allows to add semantic verification that the timer has been running.
Diffstat (limited to 'src/gprs_rlcmac_data.cpp')
-rw-r--r--src/gprs_rlcmac_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp
index 035c2035..d5bebff1 100644
--- a/src/gprs_rlcmac_data.cpp
+++ b/src/gprs_rlcmac_data.cpp
@@ -928,7 +928,7 @@ struct msgb *gprs_rlcmac_send_packet_downlink_assignment(
tbf_new_state(new_tbf, GPRS_RLCMAC_FLOW);
tbf_assign_control_ts(new_tbf);
/* stop pending assignment timer */
- tbf_timer_stop(new_tbf);
+ new_tbf->stop_timer();
}
debug_diagram(bts->bts, tbf->diag, "send DL-ASS");
@@ -968,7 +968,7 @@ void gprs_rlcmac_trigger_downlink_assignment(
#endif
/* stop pending timer */
- tbf_timer_stop(tbf);
+ tbf->stop_timer();
/* check for downlink tbf: */
if (old_tbf) {