Base thread class for servicing real time queues. More...
#include <thread.h>
Inherits: Thread
The RT service thread is the base class for realtime send and receive servicing. An internal buffer is provided for assembling realtime 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.
Get the timeout for this service thread.
Construct and set initial timer for a new RTP service thread.
pri | thread base priority relative to it's parent. |
start | starting semaphore for synchronization. |
Destroy an realtime service thread. Wait for any remaining time synchronization and exit.
Determine audio format being supported by the service thread for the specified payload identifier currently in effect.
payload | identifier. |
Get audio encoding codec to use for processing this realtime service stream based on the current payload identifier in effect.
payload | identifier. |
Set the thread timeout.
timeout | for this realtime service thread in milliseconds. |
Add to current service thread startup delay.
number | of timeouts to add to the current startup. |
Test for and update service delay timer.
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.
This service provides a time synchronized delay via APE sleep. The delay is computed by adjusting the time forward.
time | interval to synchronize on. |
Compute the amount of time that has transpired since the last time sync mark was computed. This can be used to determine if a blocking operation has caused frame delays.
Adjust current time marker for this thread. This can be used in place of pausing when updating for delays that have already occured.
timeout | to adjust start time by. |
Set audio sampling format for this service thread. This change is assumed to take effect on the next operation.
audio | sampling format. |
| Kdoc |