0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ExpireTimer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
28 #ifndef AsyncComm_ExpireTimer_h
29 #define AsyncComm_ExpireTimer_h
30 
31 #include "Clock.h"
32 #include "DispatchHandler.h"
33 
34 namespace Hypertable {
35 
42  struct ExpireTimer {
45  };
46 
49  struct LtTimerHeap {
56  bool operator()(const ExpireTimer &t1, const ExpireTimer &t2) const {
58  }
59  };
61 }
62 
63 #endif // AsyncComm_ExpireTimer_h
State record for timer.
Definition: ExpireTimer.h:42
chrono::time_point< fast_clock > time_point
Definition: fast_clock.h:42
Comparison function (functor) for timer heap.
Definition: ExpireTimer.h:49
ClockT::time_point expire_time
Absolute expiration time.
Definition: ExpireTimer.h:43
bool operator()(const ExpireTimer &t1, const ExpireTimer &t2) const
Parenthesis operator with two ExpireTimer parameters.
Definition: ExpireTimer.h:56
Declaration of ClockT.
DispatchHandlerPtr handler
Dispatch handler to receive TIMER event.
Definition: ExpireTimer.h:44
Declarations for DispatchHandler.
Hypertable definitions
std::shared_ptr< DispatchHandler > DispatchHandlerPtr
Smart pointer to DispatchHandler.
bool operator>(const directory< _Key, _Tp, _Compare, _Allocator > &__x, const directory< _Key, _Tp, _Compare, _Allocator > &__y)
Definition: directory.h:852