Cern
LibTmsApi 2.3.0

This class provides an interface for sending simple integer events via a file descriptor. This allows threads to send events that can be picked up by the poll system call. More...

#include <BEvent1.h>

Public Member Functions

 BEvent1Int ()
 
 ~BEvent1Int ()
 
void clear ()
 Clear events pending.
 
BError sendEvent (int event)
 Send an event.
 
BError getEvent (int &event, int timeOutUs=-1)
 Receive the event.
 
int getFd ()
 

Private Attributes

int ofds [2]
 File descriptors for pipe.
 

Detailed Description

This class provides an interface for sending simple integer events via a file descriptor. This allows threads to send events that can be picked up by the poll system call.

Constructor & Destructor Documentation

◆ BEvent1Int()

BEvent1Int::BEvent1Int ( )

◆ ~BEvent1Int()

BEvent1Int::~BEvent1Int ( )

Member Function Documentation

◆ clear()

void BEvent1Int::clear ( )

Clear events pending.

◆ getEvent()

BError BEvent1Int::getEvent ( int &  event,
int  timeOutUs = -1 
)

Receive the event.

◆ getFd()

int BEvent1Int::getFd ( )

◆ sendEvent()

BError BEvent1Int::sendEvent ( int  event)

Send an event.

Member Data Documentation

◆ ofds

int BEvent1Int::ofds[2]
private

File descriptors for pipe.


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