blob: 9c35c447069b0a499542950d9b273e922c866520 [file] [log] [blame]
kurtis.heimerl8aea56e2011-11-26 03:18:30 +00001/*
2 * Written by Thomas Tsou <ttsou@vt.edu>
3 * Based on code by Harvind S Samra <hssamra@kestrelsp.com>
4 *
5 * Copyright 2011 Free Software Foundation, Inc.
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 Affero 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 * See the COPYING file in the main directory for details.
20 */
21
22#ifndef RADIOCLOCK_H
23#define RADIOCLOCK_H
24
25#include "GSMCommon.h"
26
27class RadioClock {
28public:
29 void set(const GSM::Time& wTime);
30 void incTN();
31 GSM::Time get();
32 void wait();
33
34private:
35 GSM::Time mClock;
36 Mutex mLock;
37 Signal updateSignal;
38};
39
40#endif /* RADIOCLOCK_H */