diff options
author | Alon Ziv <alonz@nolaviz.org> | 2007-07-30 22:47:59 +0300 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-08-23 12:12:01 +0200 |
commit | de26e406f52b3b13f03eee2b8023924ec6406f0a (patch) | |
tree | 8e842e5ded3b28eecb846bd91de5e68a5635ff47 /Makefile.am | |
parent | c66e5de26ae93caa368213f3cce139aacec955d2 (diff) |
radeon: Sane handling of timeouts in WaitForVerticalSync(2).
RADEONWaitForVerticalSync() and RADEONWaitForVerticalSync2() need to wait
for a timeout specified in milliseconds; looping around usleep() causes
the timeout to be unnecessarily long, as the OS may sleep longer than
requested (on Linux the minimum actual sleep value may be several ms).
The new logic uses gettimeofday() in the loop to see when the (absolute)
timeout has arrived.
Signed-off-by: Alon Ziv <alonz@nolaviz.org>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions