nidas
v1.2-1520
|
Public Member Functions | |
NotifyPipe (SensorHandler *handler) throw (nidas::util::IOException) | |
~NotifyPipe () | |
bool | handlePollEvents (uint32_t events) throw () |
void | close () throw (nidas::util::IOException) |
void | notify () throw () |
Used in public methods of SensorHandler which are called from other threads to notify the SensorHandler that the collection of polled objects has changed. More... | |
int | getFd () const |
Private Member Functions | |
NotifyPipe (const NotifyPipe &) | |
NotifyPipe & | operator= (const NotifyPipe &) |
Private Attributes | |
int | _fds [2] |
SensorHandler * | _handler |
SensorHandler::NotifyPipe::NotifyPipe | ( | SensorHandler * | handler | ) | |
throw | ( | nidas::util::IOException | |||
) |
SensorHandler::NotifyPipe::~NotifyPipe | ( | ) |
References PLOG, and nidas::util::Exception::what().
|
private |
void SensorHandler::NotifyPipe::close | ( | ) | ||
throw | ( | nidas::util::IOException | ||
) |
Referenced by nidas::core::SensorHandler::run().
|
inlinevirtual |
Implements nidas::core::Polled.
Referenced by nidas::core::SensorHandler::handlePollingChange().
|
virtual |
Implements nidas::core::Polled.
References N_POLLERR, N_POLLHUP, N_POLLIN, N_POLLRDHUP, PLOG, and nidas::util::Exception::what().
void SensorHandler::NotifyPipe::notify | ( | ) | ||
throw | ( | |||
) |
Used in public methods of SensorHandler which are called from other threads to notify the SensorHandler that the collection of polled objects has changed.
References nidas::util::Exception::what(), and WLOG.
Referenced by nidas::core::SensorHandler::interrupt(), nidas::core::SensorHandler::scheduleAdd(), nidas::core::SensorHandler::scheduleClose(), nidas::core::SensorHandler::scheduleReopen(), and nidas::core::SensorHandler::sensorIsOpen().
|
private |
|
private |
|
private |