C++ wrapper for epicsEvent from EPICS base.
More...
#include "event.h"
C++ wrapper for epicsEvent from EPICS base.
Definition at line 31 of file event.h.
epics::pvData::Event::Event |
( |
bool |
full = false | ) |
|
|
explicit |
Constructor
Definition at line 39 of file event.cpp.
LIBCOM_API epicsEventId epicsEventCreate(epicsEventInitialState initialState)
Create an epicsEvent for use from C code, or return NULL.
epics::pvData::Event::~Event |
( |
| ) |
|
Destructor.
Definition at line 33 of file event.cpp.
LIBCOM_API void epicsEventDestroy(epicsEventId id)
Destroy an epicsEvent and any resources it holds.
epics::pvData::Event::POINTER_DEFINITIONS |
( |
Event |
| ) |
|
void epics::pvData::Event::signal |
( |
| ) |
|
Signal the event i.e. ensures that the next or current call to wait completes.
Definition at line 44 of file event.cpp.
46 if(
id==0)
throw std::logic_error(
string(
"event was deleted"));
#define epicsEventSignal(ID)
A synonym for epicsEventTrigger().
bool epics::pvData::Event::tryWait |
( |
| ) |
|
See if a signal has been called.
- Returns
- (false, true) if (timeout or error, event signaled).
Definition at line 64 of file event.cpp.
66 if(
id==0)
throw std::logic_error(
string(
"event was deleted"));
LIBCOM_API epicsEventStatus epicsEventTryWait(epicsEventId id)
Similar to wait() except that if the event is currenly empty the call will return immediately with st...
#define epicsEventWaitOK
Old name provided for backwards compatibility.
#define epicsEventWaitStatus
Old name provided for backwards compatibility.
bool epics::pvData::Event::wait |
( |
| ) |
|
wait
- Returns
- (false,true) if (some error, event signaled). The next wait or tryWait will clear signal.
Definition at line 50 of file event.cpp.
52 if(
id==0)
throw std::logic_error(
string(
"event was deleted"));
#define epicsEventWait(ID)
#define epicsEventWaitOK
Old name provided for backwards compatibility.
#define epicsEventWaitStatus
Old name provided for backwards compatibility.
bool epics::pvData::Event::wait |
( |
double |
timeOut | ) |
|
wait for up to timeOut seconds.
- Parameters
-
timeOut | max number of seconds to wait |
- Returns
- (false, true) if (timeout or error, event signaled).
Definition at line 57 of file event.cpp.
59 if(
id==0)
throw std::logic_error(
string(
"event was deleted"));
LIBCOM_API epicsEventStatus epicsEventWaitWithTimeout(epicsEventId id, double timeOut)
Wait an the event or until the specified timeout period is over.
#define epicsEventWaitOK
Old name provided for backwards compatibility.
#define epicsEventWaitStatus
Old name provided for backwards compatibility.
The documentation for this class was generated from the following files: