mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move sources to src and build objs in obj.
This commit is contained in:
26
src/TimingService.h
Normal file
26
src/TimingService.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __TIMINGSERVICE__
|
||||
#define __TIMINGSERVICE__
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
|
||||
/* responsible for keeping track of network time
|
||||
and kicking off the publishing process
|
||||
*/
|
||||
|
||||
class TimingService
|
||||
{
|
||||
boost::asio::deadline_timer* mLedgerTimer;
|
||||
boost::asio::deadline_timer* mPropTimer;
|
||||
boost::asio::deadline_timer* mValidTimer;
|
||||
|
||||
void handleLedger();
|
||||
void handleProp();
|
||||
void handleValid();
|
||||
public:
|
||||
TimingService();
|
||||
void start(boost::asio::io_service& ioService);
|
||||
|
||||
static int getCurrentLedgerIndex();
|
||||
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user