aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_timing_pthread.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-26 15:37:01 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-26 15:37:01 +0000
commit5a1f7d897e1381e17edd9cc54271bb4ec2e3a56e (patch)
tree118582e660d2690096ebef4c51e0bd240a6507e0 /res/res_timing_pthread.c
parent6cafe1a2572a8955f9a5f9e270fec7b12046b182 (diff)
- add get_max_rate timing API call
- change ast_settimeout() to honor max rate in edge cases of file playback (this will make some warning messages go away at the end of playing back a file) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125332 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_timing_pthread.c')
-rw-r--r--res/res_timing_pthread.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_timing_pthread.c b/res/res_timing_pthread.c
index f0a1d0e98..3178434c0 100644
--- a/res/res_timing_pthread.c
+++ b/res/res_timing_pthread.c
@@ -46,6 +46,7 @@ static void pthread_timer_ack(int handle, unsigned int quantity);
static int pthread_timer_enable_continuous(int handle);
static int pthread_timer_disable_continuous(int handle);
static enum ast_timing_event pthread_timer_get_event(int handle);
+static unsigned int pthread_timer_get_max_rate(int handle);
static struct ast_timing_functions pthread_timing_functions = {
.timer_open = pthread_timer_open,
@@ -55,6 +56,7 @@ static struct ast_timing_functions pthread_timing_functions = {
.timer_enable_continuous = pthread_timer_enable_continuous,
.timer_disable_continuous = pthread_timer_disable_continuous,
.timer_get_event = pthread_timer_get_event,
+ .timer_get_max_rate = pthread_timer_get_max_rate,
};
/* 1 tick / 10 ms */
@@ -249,6 +251,11 @@ static enum ast_timing_event pthread_timer_get_event(int handle)
return res;
}
+static unsigned int pthread_timer_get_max_rate(int handle)
+{
+ return MAX_RATE;
+}
+
static struct pthread_timer *find_timer(int handle, int unlink)
{
struct pthread_timer *timer;