From: Jacob Lifshay Date: Sat, 16 Sep 2017 01:59:38 +0000 (-0700) Subject: fix infinite loop on fence wait timeout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e89d8ce1b4b6dcbfec771b0beda8bacc23b5306f;p=kazan.git fix infinite loop on fence wait timeout --- diff --git a/src/vulkan/api_objects.h b/src/vulkan/api_objects.h index cf44431..c35ed35 100644 --- a/src/vulkan/api_objects.h +++ b/src/vulkan/api_objects.h @@ -1601,7 +1601,10 @@ private: while(wait_count != 0) { if(end_time) - cond.wait_until(lock_it, *end_time); + { + if(cond.wait_until(lock_it, *end_time) == std::cv_status::timeout) + break; + } else cond.wait(lock_it); }