class ThreadedSource

A data source with a thread of its own More...

Contains pure virtuals
Full nameTelEngine::ThreadedSource
Definition#include <telephony.h>
InheritsTelEngine::DataSource [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A data source with a thread of its own

 ~ThreadedSource ()

~ThreadedSource

[virtual]

The destructor, stops the thread

bool  start (const char *name = "ThreadedSource")

start

Starts the worker thread

Returns: True if started, false if an error occured

void  stop ()

stop

Stops and destroys the worker thread if running

Thread * thread ()

thread

[const]

Return a pointer to the worker thread

Returns: Pointer to running worker thread or NULL

 ThreadedSource (const char *format = "slin")

ThreadedSource

[protected]

Threaded Source constructor

Parameters:
formatName of the data format, default "slin" (Signed Linear)

void  run ()

run

[protected pure virtual]

The worker method. You have to reimplement it as you need

void  cleanup ()

cleanup

[protected virtual]

The cleanup after thread method


Generated by: kk on nyx on Sat Jun 4 19:29:41 2005, using kdoc 2.0a54.