summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2023-10-04 12:17:23 +0900
committerChangyeon Lee <cyeon.lee@samsung.com>2023-12-20 12:10:18 +0900
commite4c5ab19e0d99d160df9078df0519469f3d1cbd4 (patch)
tree1dd8827f4d62a42b0489a807e0a626225952bd36
parent64cdaa2e9deacbc34f00a8ae1a2d7209cfda6bdd (diff)
downloadlibtbm-accepted/tizen_8.0_unified.tar.gz
libtbm-accepted/tizen_8.0_unified.tar.bz2
libtbm-accepted/tizen_8.0_unified.zip
tbm_surface_queue: Fix bug that can_dequeue does not wait when using 1000msaccepted/tizen/8.0/unified/20231220.164939tizen_8.0tizen_7.0_mcaccepted/tizen_8.0_unified
Change-Id: I690deef54400ce54bb27febcca06b0cf15ac94ad
-rw-r--r--src/tbm_surface_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbm_surface_queue.c b/src/tbm_surface_queue.c
index ff82ad8..3f17764 100644
--- a/src/tbm_surface_queue.c
+++ b/src/tbm_surface_queue.c
@@ -1387,7 +1387,7 @@ tbm_surface_queue_can_dequeue_wait_timeout(tbm_surface_queue_h surface_queue, in
while (1) {
clock_gettime(CLOCK_MONOTONIC, &tp);
- if (ms_timeout > 1000)
+ if (ms_timeout >= 1000)
tp.tv_sec += ms_timeout / 1000;
tp.tv_nsec += (ms_timeout % 1000) * 1000000;