Make `timer_create(CLOCK_REALTIME)` autoconf test more reliable
authorHerbert Valerio Riedel <hvr@gnu.org>
Tue, 17 Nov 2015 14:30:56 +0000 (15:30 +0100)
committerBen Gamari <ben@smart-cactus.org>
Tue, 17 Nov 2015 15:19:52 +0000 (16:19 +0100)
commit8ad9e74f1f88d5c86d2e76f9992f9b2d267421d3
treea12bef1f530830078cc91712c576ba007791e1e5
parentb3d6c0f77df0c2cbb5cedaa48a8e874fad3e9942
Make `timer_create(CLOCK_REALTIME)` autoconf test more reliable

I've noticed that on a platform with a coarse timer/scheduling
granularity of 10ms this autoconf tests fails to detect a working
`timer_create(CLOCK_REALTIME)`.

On AIX, this effectively means that intervals/timers are rounded up to
multiples of 10ms, so a 13ms delay is effectively a 20ms delay.

By using a 100ms timeout we are on the safe side.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie, erikd

Differential Revision: https://phabricator.haskell.org/D1483
aclocal.m4