blob: dac3e6d46589b3719522e13624c332f10efe042e [file] [log] [blame]
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +02001/* poll_controller.h
2 *
3 * Copyright (C) 2013 by Holger Hans Peter Freyther
4 *
5 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#pragma once
23
24struct gprs_rlcmac_bts;
25
Holger Hans Peter Freyther35cc1c02014-07-02 14:48:44 +020026struct BTS;
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020027
28/**
29 * I belong to a BTS and I am responsible for finding TBFs and
30 * SBAs that should have been polled and execute the timeout
31 * action on them.
32 */
33class PollController {
34public:
35 PollController(BTS& bts);
36
37 void expireTimedout(int frame_number);
38
39private:
40 BTS& m_bts;
41
42private:
43 /* disable copying to avoid slicing */
44 PollController(const PollController&);
45 PollController& operator=(const PollController&);
46};