Use zaptel timers to wake up processes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-05-12 04:23:55 +00:00
parent 21524d6652
commit 40c4e1f8c4
6 changed files with 57 additions and 11 deletions

View File

@@ -112,6 +112,9 @@ struct ast_channel {
struct ast_filestream *stream;
/*! Original writer format */
int oldwriteformat;
/*! Timing fd */
int timingfd;
/*! State of line -- Don't write directly, use ast_setstate */
@@ -669,6 +672,10 @@ int ast_autoservice_start(struct ast_channel *chan);
/*! Stop servicing a channel for us... Returns -1 on error or if channel has been hungup */
int ast_autoservice_stop(struct ast_channel *chan);
/* If built with zaptel optimizations, force a scheduled expiration on the
timer fd */
int ast_settimeout(struct ast_channel *c, int ms);
/* Misc. functions below */
//! Waits for activity on a group of channels