Prefer POSIX timers if available.
commit9e7c4c638ee7f45d5b52e8d7cca74a0b466f88c2
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Sep 2012 19:18:05 +0000 (25 12:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Sep 2012 19:18:05 +0000 (25 12:18 -0700)
tree5c2344646504be9347092f61a65b458ec84bce3d
parent650a7a8228d9b688930b2c091cfae53ea32c9d15
Prefer POSIX timers if available.

They avoid a race if the timer is too close to the current time.
* atimer.c (alarm_timer, alarm_timer_ok) [SIGEV_SIGNAL]: New static vars.
(set_alarm) [SIGEV_SIGNAL]: Use POSIX timers if available.
(init_atimer) [SIGEV_SIGAL]: Initialize them.
src/ChangeLog
src/atimer.c