[asterisk-commits] russell: trunk r122928 - /trunk/res/res_timing_pthread.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 16 08:08:13 CDT 2008


Author: russell
Date: Mon Jun 16 08:08:13 2008
New Revision: 122928

URL: http://svn.digium.com/view/asterisk?view=rev&rev=122928
Log:
Merge res_timing_pthread.  This is a timing interface for Asterisk that
does not require DAHDI.  It's called "pthread" because it uses a pthread
API call in the timing thread for sleeping and ensuring we wake up at
an appropriate time.  I wasn't sure what else to call it.  :)

The timing API requires a file descriptor that can be polled on.  So,
when you open a timer, this module creates a pipe and returns the read
end of the pipe.  There is a background thread that wakes up every 10ms
and checks to see if any of the currently open timers need a 'tick' and
writes to the appropriate pipe.

Added:
    trunk/res/res_timing_pthread.c
      - copied, changed from r122927, team/group/timing/res/res_timing_pthread.c

Copied: trunk/res/res_timing_pthread.c (from r122927, team/group/timing/res/res_timing_pthread.c)
URL: http://svn.digium.com/view/asterisk/trunk/res/res_timing_pthread.c?view=diff&rev=122928&p1=team/group/timing/res/res_timing_pthread.c&r1=122927&p2=trunk/res/res_timing_pthread.c&r2=122928
==============================================================================
--- team/group/timing/res/res_timing_pthread.c (original)
+++ trunk/res/res_timing_pthread.c Mon Jun 16 08:08:13 2008
@@ -20,8 +20,6 @@
  * \file
  * \author Russell Bryant <russell at digium.com>
  *
- * Timing logic shamelessly stolen from bridge_softmix, by Joshua Colp.
- *
  * \brief pthread timing interface 
  */
 




More information about the asterisk-commits mailing list