projects
/
platform
/
core
/
uifw
/
libtbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abf3bf8
)
surface_queue: wrap mutex lock when check valid of surface_queue
91/115491/1
author
Changyeon Lee
<cyeon.lee@samsung.com>
Mon, 20 Feb 2017 07:16:46 +0000
(16:16 +0900)
committer
Changyeon Lee
<cyeon.lee@samsung.com>
Mon, 20 Feb 2017 07:16:46 +0000
(16:16 +0900)
Change-Id: I7e1d24596730562be3bd65927320bcd9963975eb
src/tbm_surface_queue.c
patch
|
blob
|
history
diff --git
a/src/tbm_surface_queue.c
b/src/tbm_surface_queue.c
index 0f33aab6c083258f9cbccf24f6bd3cc44262cbfe..ccc39a35ca985aef9db2b5f5027210d07645a4a1 100644
(file)
--- a/
src/tbm_surface_queue.c
+++ b/
src/tbm_surface_queue.c
@@
-1040,7
+1040,11
@@
tbm_surface_queue_dequeue(tbm_surface_queue_h
int
tbm_surface_queue_can_dequeue(tbm_surface_queue_h surface_queue, int wait)
{
- TBM_SURF_QUEUE_RETURN_VAL_IF_FAIL(surface_queue, 0);
+ _tbm_surf_queue_mutex_lock();
+
+ TBM_SURF_QUEUE_RETURN_VAL_IF_FAIL(_tbm_surface_queue_is_valid(surface_queue), 0);
+
+ _tbm_surf_queue_mutex_unlock();
_notify_emit(surface_queue, &surface_queue->can_dequeue_noti);