Merge res_timing_pthread. This is a timing interface for Asterisk that
commitcce5c61ed0d13cf4490a90ee51d478aa05f67645
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Mon, 16 Jun 2008 13:08:13 +0000 (16 13:08 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Mon, 16 Jun 2008 13:08:13 +0000 (16 13:08 +0000)
tree1b78b712c216c7d7fb4eb9a5932b4350996d2815
parente7c43494d08e836cb6035662e339ac28c2a6bd4e
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.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122928 614ede4d-c843-0410-af14-a771ab80d22e
res/res_timing_pthread.c [new file with mode: 0644]