ChimeraTK-DeviceAccess  03.18.00
ChimeraTK::EventThread Class Reference

#include <EventFile.h>

Public Member Functions

 EventThread ()=delete
 
 EventThread (EventFile &owner, std::promise< void > subscriptionDonePromise)
 
 ~EventThread ()
 
void start (std::promise< void > subscriptionDonePromise)
 
void waitForEvent ()
 
void readEvent (const boost::system::error_code &ec)
 
void handleEvent (const boost::system::error_code &ec, std::size_t bytes_transferred)
 
void timerEvent (const boost::system::error_code &ec)
 

Public Attributes

boost::asio::steady_timer timer {_ctx}
 
const int timerSleepSec = 1
 

Detailed Description

Definition at line 19 of file EventFile.h.

Constructor & Destructor Documentation

◆ EventThread() [1/2]

ChimeraTK::EventThread::EventThread ( )
delete

◆ EventThread() [2/2]

ChimeraTK::EventThread::EventThread ( EventFile owner,
std::promise< void >  subscriptionDonePromise 
)

Definition at line 13 of file EventFile.cc.

◆ ~EventThread()

ChimeraTK::EventThread::~EventThread ( )

Definition at line 21 of file EventFile.cc.

+ Here is the call graph for this function:

Member Function Documentation

◆ handleEvent()

void ChimeraTK::EventThread::handleEvent ( const boost::system::error_code &  ec,
std::size_t  bytes_transferred 
)

Definition at line 76 of file EventFile.cc.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readEvent()

void ChimeraTK::EventThread::readEvent ( const boost::system::error_code &  ec)

Definition at line 61 of file EventFile.cc.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

void ChimeraTK::EventThread::start ( std::promise< void >  subscriptionDonePromise)

Definition at line 29 of file EventFile.cc.

+ Here is the call graph for this function:

◆ timerEvent()

void ChimeraTK::EventThread::timerEvent ( const boost::system::error_code &  ec)

Definition at line 101 of file EventFile.cc.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ waitForEvent()

void ChimeraTK::EventThread::waitForEvent ( )

Definition at line 49 of file EventFile.cc.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ timer

boost::asio::steady_timer ChimeraTK::EventThread::timer {_ctx}

Definition at line 38 of file EventFile.h.

◆ timerSleepSec

const int ChimeraTK::EventThread::timerSleepSec = 1

Definition at line 39 of file EventFile.h.


The documentation for this class was generated from the following files: