ost::SerialService(3) | Library Functions Manual | ost::SerialService(3) |
NAME¶
ost::SerialService - The SerialService is a thead service object that is meant to service attached serial ports.SYNOPSIS¶
#include <serial.h> Inherits ost::Thread, and ost::Mutex.Public Member Functions¶
void update (unsigned char flag=0xff)
Protected Member Functions¶
virtual void onUpdate (unsigned char flag)
Friends¶
class SerialPort
Additional Inherited Members¶
Detailed Description¶
The SerialService is a thead service object that is meant to service attached serial ports.David Sugar dyfet@ostel.com Thread pool
service for serial ports.
Constructor & Destructor Documentation¶
ost::SerialService::SerialService (intpri = 0, size_tstack = 0, const char *id = NULL)¶
Create a service thread for attaching serial ports. The thread begins execution with the first attached port. Parameters:pri of this thread to run under.
stack stack size.
id stack ID.
virtual ost::SerialService::~SerialService () [virtual]¶
Terminate the service thread and update attached objects.Member Function Documentation¶
int ost::SerialService::getCount (void) [inline]¶
Get current reference count. This can be used when selecting the lead used service handler from a pool. Returns:count of active ports.
virtual void ost::SerialService::onCallback (SerialPort *port) [protected], [virtual]¶
A virtual handler for adding support for additional callback events into SerialPort. Parameters:port serial port currently being
evaluated.
virtual void ost::SerialService::onEvent (void) [protected], [virtual]¶
A virtual handler for event loop calls. This can be used to extend event loop processing.virtual void ost::SerialService::onUpdate (unsigned charflag) [protected], [virtual]¶
A virtual handler for processing user defined update requests (1-254) which have been posted through Update. Parameters:flag of update request.
void ost::SerialService::update (unsigned charflag = 0xff)¶
Notify service thread that a port has been added or removed, or a timer changed, so that a new schedule can be computed for expiring attached ports. This can also be used to pass requests to the OnUpdate() event handler. Parameters:flag event for OnUpdate, termination,
or reschedule.
Friends And Related Function Documentation¶
friend class SerialPort [friend]¶
Author¶
Generated automatically by Doxygen for GNU CommonC++ from the source code.Sat Jun 23 2012 | GNU CommonC++ |