Yate
Public Member Functions | Static Public Member Functions | Friends
RTPGroup Class Reference

A group of RTP processors handled by the same thread. More...

#include <yatertp.h>

Inheritance diagram for RTPGroup:
GenObject Mutex Thread Lockable Runnable

List of all members.

Public Member Functions

 RTPGroup (int msec=0, Priority prio=Normal)
virtual ~RTPGroup ()
virtual void cleanup ()
virtual void run ()
void join (RTPProcessor *proc)
void part (RTPProcessor *proc)

Static Public Member Functions

static void setMinSleep (int msec)

Friends

class RTPProcessor

Detailed Description

A group of RTP processors handled by the same thread.

Several possibly related RTP processors share the same RTP group which holds the thread that keeps them running.


Constructor & Destructor Documentation

RTPGroup ( int  msec = 0,
Priority  prio = Normal 
)

Constructor

Parameters:
msecMinimum time to sleep in loop in milliseconds
prioThread priority to run this group
virtual ~RTPGroup ( ) [virtual]

Group destructor, removes itself from all remaining processors


Member Function Documentation

virtual void cleanup ( ) [virtual]

Inherited thread cleanup

Reimplemented from Thread.

void join ( RTPProcessor proc)

Add a RTP processor to this group

Parameters:
procPointer to the RTP processor to add
void part ( RTPProcessor proc)

Remove a RTP processor from this group

Parameters:
procPointer to the RTP processor to remove
virtual void run ( ) [virtual]

Inherited thread run method

Implements Runnable.

static void setMinSleep ( int  msec) [static]

Set the system global minimum time to sleep in loop

Parameters:
msecMinimum time to sleep in loop in milliseconds

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