Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Service Class Reference

Services are threads used to support a trunk class, such as audio services used for audio, etc. service thread support. More...

#include <bayonne.h>

Inheritance diagram for Service:

Semaphore Thread AudioService List of all members.

Public Methods

 Service (Trunk *trunk, int pri)
 Create a service thread on an existing trunk object. More...

virtual timeout_t Stop (void)
 request to stop a service and obtain default "delay" time to use for reset interval. More...

virtual bool isExiting (void)
 Indicate if the service thread is exiting and/or can be deleted now. More...

void endService (void)
 Invoke termination.

virtual ~Service ()
 Termination of service.


Protected Methods

void Success (void)
 Signal "successful" completion result.

void Failure (void)
 Signal "failure" completion result.

void dspReset (void)
 Mark required dsp reset.

void setAudio (void)
 Set audio marker.

void clrAudio (void)
 Clear audio marker.


Protected Attributes

volatile bool stopped
trunkdata_tdata
TrunkGroupgroup

Detailed Description

Services are threads used to support a trunk class, such as audio services used for audio, etc. service thread support.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Service::Service ( Trunk * trunk,
int pri )
 

Create a service thread on an existing trunk object.

Parameters:
trunk   object to use.
process   priority.

Service::~Service ( ) [inline, virtual]
 

Termination of service.


Member Function Documentation

void Service::Failure ( void ) [protected]
 

Signal "failure" completion result.

timeout_t Service::Stop ( void ) [virtual]
 

request to stop a service and obtain default "delay" time to use for reset interval.

Returns:
delay in milliseconds.

void Service::Success ( void ) [protected]
 

Signal "successful" completion result.

void Service::clrAudio ( void ) [inline, protected]
 

Clear audio marker.

void Service::dspReset ( void ) [inline, protected]
 

Mark required dsp reset.

void Service::endService ( void ) [inline]
 

Invoke termination.

bool Service::isExiting ( void ) [inline, virtual]
 

Indicate if the service thread is exiting and/or can be deleted now.

If false, then it will be cleaned by the scheduler thread.

Returns:
false if held to scheduler.

void Service::setAudio ( void ) [inline, protected]
 

Set audio marker.


Member Data Documentation

trunkdata_t * Service::data [protected]
 

TrunkGroup * Service::group [protected]
 

volatile bool Service::stopped [protected]
 


The documentation for this class was generated from the following file:
Generated at Sat Mar 10 21:03:03 2001 for Bayonne by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000