#include <yatertp.h>
Public Member Functions | |
RTPGroup (int msec=0, Priority prio=Normal) | |
virtual | ~RTPGroup () |
virtual void | cleanup () |
virtual void | run () |
Static Public Member Functions | |
static void | setMinSleep (int msec) |
Protected Member Functions | |
void | join (RTPProcessor *proc) |
void | part (RTPProcessor *proc) |
Friends | |
class | RTPProcessor |
Several possibly related RTP processors share the same RTP group which holds the thread that keeps them running.
Constructor
msec | Minimum time to sleep in loop in milliseconds | |
prio | Thread priority to run this group |
virtual ~RTPGroup | ( | ) | [virtual] |
Group destructor, removes itself from all remaining processors
virtual void cleanup | ( | ) | [virtual] |
Inherited thread cleanup
Reimplemented from Thread.
void join | ( | RTPProcessor * | proc | ) | [protected] |
Add a RTP processor to this group
proc | Pointer to the RTP processor to add |
void part | ( | RTPProcessor * | proc | ) | [protected] |
Remove a RTP processor from this group
proc | Pointer 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
msec | Minimum time to sleep in loop in milliseconds |