Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /*
7 ** C++ interval times (ref: prinrval.h)
8 **
9 ** An interval is a period of time. The start of the interval (epoch)
10 ** must be defined by the application. The unit of time of an interval
11 ** is platform dependent, therefore so is the maximum interval that is
12 ** representable. However, that interval is never less that ~12 hours.
13 */
15 #include "rcinrval.h"
17 RCInterval::~RCInterval() { }
19 RCInterval::RCInterval(RCInterval::RCReservedInterval special): RCBase()
20 {
21 switch (special)
22 {
23 case RCInterval::now:
24 interval = PR_IntervalNow();
25 break;
26 case RCInterval::no_timeout:
27 interval = PR_INTERVAL_NO_TIMEOUT;
28 break;
29 case RCInterval::no_wait:
30 interval = PR_INTERVAL_NO_WAIT;
31 break;
32 default:
33 break;
34 }
35 } /* RCInterval::RCInterval */
37 /* rcinrval.cpp */