commit | df92a13a270bea95f5c5260ee5de0c5b776f5131 | [log] [tgz] |
---|---|---|
author | Jesse Natalie <jenatali@microsoft.com> | Tue Nov 02 10:10:01 2021 -0700 |
committer | Marge Bot <emma+marge@anholt.net> | Tue Nov 09 04:05:55 2021 +0000 |
tree | 7d2e78ef43b228dbf39cf6eac0056166a4a66fbb | |
parent | 1ab906d17fb5fd4c1f9921f8e8c5b8691530c2bf [diff] |
util/libsync: Fix timeout handling if poll() wakes up early Check how long poll waited, and use a smaller timeout on the next iteration through the loop. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12268>