RTPThread Class Reference

[ARTS Index] [ARTS Heirarchy]


Base thread class for servicing real time queues. More...

#include <rtp.h>

Inherits: Thread

Public Members

Protected Members


Detailed Description

The RTP thread is the base class for RTP socket send and receive servicing. An internal buffer is provided for assembling RTP data packets, and a new time synchronization service is offered so that threads can sleep intervals that can be adjusted to the passing of actual time to account for processing drift.


RTPThread(Semaphore *start = NULL, int pri = 0)

Construct and set initial timer for a new RTP service thread.

Parameters:
pri thread base priority relative to it's parent.
start starting semaphore for synchronization.

virtual ~RTPThread()

Destroy an RTP service thread. Wait for any remaining time synchronization and exit.

void Reset(void)

Reset the pause timer to the current time of day. This is used to initially synchronize the stream timer when time clock based "pacing" is required, such as when streaming data that is not realtime in origin.

bool Pause(timeout_t sync)

This service provides a time synchronized delay via APE sleep. The delay is computed by adjusting the time forward.

Parameters:
time interval to synchronize on.
Returns:
true if delay needed (after sleeping).

  • Author: David Sugar (dyfet@ostel.com)
  • Documentation generated by dyfet@centauri.sys on Tue Jun 29 23:36:17 EDT 1999
Kdoc