24#ifndef included_Retro_ReventLoop
25#define included_Retro_ReventLoop 1
41 typedef std::function<int(
const pollfd&)>
pollhdl_t;
50 int fd,
short events=POLLIN);
55 void SetLogFile(
const std::shared_ptr<RlogFile>& splog);
64 virtual void Dump(std::ostream& os,
int ind=0,
const char* text=0,
69 int DoPoll(
int timeout=-1);
virtual void EventLoop()
FIXME_docs.
std::shared_ptr< RlogFile > fspLog
log file ptr
ReventLoop(const ReventLoop &)=delete
virtual ~ReventLoop()
FIXME_docs.
ReventLoop & operator=(const ReventLoop &)=delete
void SetLogFile(const std::shared_ptr< RlogFile > &splog)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
void DoCall(void)
FIXME_docs.
uint32_t TraceLevel() const
FIXME_docs.
void SetTraceLevel(uint32_t level)
FIXME_docs.
std::vector< pollfd > fPollFd
int DoPoll(int timeout=-1)
FIXME_docs.
void AddPollHandler(pollhdl_t &&pollhdl, int fd, short events=POLLIN)
FIXME_docs.
std::vector< PollDsc > fPollDsc
bool StopPending()
FIXME_docs.
uint32_t fTraceLevel
trace level
std::function< int(const pollfd &)> pollhdl_t
bool TestPollHandler(int fd, short events=POLLIN)
FIXME_docs.
std::vector< pollhdl_t > fPollHdl
void RemovePollHandler(int fd, short events, bool nothrow=false)
FIXME_docs.
Declaration of class ReventLoop.
PollDsc(pollhdl_t hdl, int fd, short evts)