[asterisk-dev] [Code Review] Timer for Mach kernels
Tilghman Lesher
tlesher at digium.com
Wed May 19 01:50:39 CDT 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/665/
-----------------------------------------------------------
Review request for Asterisk Developers.
Summary
-------
While trying to verify the kqueue implementation on OS X, I coded an alternate timing implementation for OS X, since it's based on a Mach kernel. The end result is that if you uncomment a few lines in the _ack function, you get perfect timing. Unfortunately, this shows that poll(2) in OS X (or really, select(2), since ast_poll on OS X is coded over select(2)) is complete and utter crap.
Diffs
-----
/trunk/configure UNKNOWN
/trunk/configure.ac 263949
/trunk/include/asterisk/autoconfig.h.in 263949
/trunk/res/res_timing_mach.c PRE-CREATION
Diff: https://reviewboard.asterisk.org/r/665/diff
Testing
-------
Verifies correctly on OS X, if you turn on the wait code in the _ack routine.
Thanks,
Tilghman
More information about the asterisk-dev
mailing list