man Service () - Services are threads used to support a trunk class, such as audio services used for audio, etc. service thread support.

NAME

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

SYNOPSIS



#include <bayonne.h>

Inherits AudioService.

Public Member Functions

Service (Trunk *trunk, int pri)

Create a service thread on an existing trunk object. virtual timeout_t stop (void)

request to stop a service and obtain default 'delay' time to use for reset interval. virtual bool isExiting (void)

Indicate if the service thread is exiting and/or can be deleted now. void endService (void)

Invoke termination. virtual ~Service ()

Termination of service.

Protected Member Functions

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_t * data

TrunkGroup * group

Detailed Description

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

Author: 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.

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

Termination of service.

Member Function Documentation

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.

void Service::failure (void) [protected]

Signal 'failure' completion result.

virtual 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.

virtual 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.

Author

Generated automatically by Doxygen for Bayonne from the source code.