csl::ThreadUtil Class Reference

#include <ThreadedFrameStream.h>

Inheritance diagram for csl::ThreadUtil:

csl::ThreadedReader csl::ThreadedWriter

List of all members.

Public Member Functions

void setSize (unsigned numChannels, unsigned numBufferFrames)
void setThreshold (unsigned threshold)
void setChannels (unsigned numChannels)
virtual void init (unsigned numChannels, unsigned numBufferFrames)=0
virtual void start ()
virtual void stop ()

Public Attributes

unsigned mNumChannels
 number of channels I handle
unsigned mNumBufferFrames
 number of frames I store
bool mIsRunning
 am I running?
int mNumAvailableFrames
unsigned mAvailableFrameThreshold
 v how many frames are available?
RingBuffer mRingBuffer
 v when do I call my input for more?

Protected Attributes

Buffer mBuffer
 buffer used to cache or accumulate

Detailed Description

ThreadUtil class -- supports reader and writer

Member Function Documentation

void ThreadUtil::setSize ( unsigned  numChannels,
unsigned  numBufferFrames 

void ThreadUtil::setThreshold ( unsigned  threshold  ) 

void ThreadUtil::setChannels ( unsigned  numChannels  ) 

References mNumChannels.

virtual void csl::ThreadUtil::init ( unsigned  numChannels,
unsigned  numBufferFrames 
) [pure virtual]

void ThreadUtil::start ( void   )  [virtual]

void ThreadUtil::stop ( void   )  [virtual]

Reimplemented in csl::ThreadedWriter.

References csl::Synch::condSignal(), mIsRunning, and mSynch.

Member Data Documentation

number of channels I handle

Referenced by csl::ThreadedWriter::init(), setChannels(), and setSize().

number of frames I store

Referenced by csl::ThreadedReader::FeederFunction(), and setSize().

v when do I call my input for more?

ring buffer used to store frames

Referenced by csl::ThreadedReader::readIntoBuffer(), setSize(), start(), csl::ThreadedWriter::writeBuffer(), and csl::ThreadedWriter::writeToOutput().

The documentation for this class was generated from the following files:

Generated on Thu Sep 17 23:14:18 2009 for CSL by  doxygen 1.5.8