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:07:16 +0200 |
commit | d0f900c857585804fedd501bcf0a603fead271ce (patch) | |
tree | 19d4e816bd3aa237f6a3ff9a39edb1472f543dd0 /src/radeon_vip.c | |
parent | 732880bfaab2224fd6d38086237e17de843def7d (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 'src/radeon_vip.c')
0 files changed, 0 insertions, 0 deletions