w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtimerFd.hpp
Go to the documentation of this file.
1// $Id: RtimerFd.hpp 1185 2019-07-12 17:29:12Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-06-08 1161 1.1 derive from Rfd, inherit IsOpen,Close,Fd
8// 2018-12-16 1084 1.0.1 use =delete for noncopyable instead of boost
9// 2017-02-18 852 1.0 Initial version
10// 2013-01-11 473 0.1 First draft
11// ---------------------------------------------------------------------------
12
13
18#ifndef included_Retro_RtimerFd
19#define included_Retro_RtimerFd 1
20
21#include <time.h>
22
23#include "Rfd.hpp"
24#include "Rtime.hpp"
25
26
27namespace Retro {
28
29 class RtimerFd : public Rfd {
30 public:
31 RtimerFd();
32 explicit RtimerFd(const char* cnam);
33
34 RtimerFd(const RtimerFd&) = delete; // noncopyable
35 RtimerFd& operator=(const RtimerFd&) = delete; // noncopyable
36
37 void Open(clockid_t clkid=CLOCK_MONOTONIC);
38 void SetRelative(const Rtime& dt);
39 void SetRelative(double dt);
40 void Cancel();
41 uint64_t Read();
42
43};
44
45} // end namespace Retro
46
47#include "RtimerFd.ipp"
48
49#endif
FIXME_docs.
Definition: Rfd.hpp:25
FIXME_docs.
Definition: Rtime.hpp:25
FIXME_docs.
Definition: RtimerFd.hpp:29
uint64_t Read()
FIXME_docs.
Definition: RtimerFd.cpp:114
RtimerFd & operator=(const RtimerFd &)=delete
void Cancel()
FIXME_docs.
Definition: RtimerFd.cpp:87
void Open(clockid_t clkid=CLOCK_MONOTONIC)
FIXME_docs.
Definition: RtimerFd.cpp:51
void SetRelative(const Rtime &dt)
FIXME_docs.
Definition: RtimerFd.cpp:65
RtimerFd(const RtimerFd &)=delete
RtimerFd()
FIXME_docs.
Definition: RtimerFd.cpp:37
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47