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
(from parent 1:
6aba738
)
bufmgr: make thread safe
41/172541/1
author
SooChan Lim
<sc1.lim@samsung.com>
Wed, 14 Mar 2018 10:12:07 +0000
(19:12 +0900)
committer
SooChan Lim
<sc1.lim@samsung.com>
Wed, 14 Mar 2018 10:12:07 +0000
(19:12 +0900)
Change-Id: Ic5db85b52898aeeac80f3ec20dca413bff29d31b
src/tbm_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr.c
b/src/tbm_bufmgr.c
index
ab0f840
..
75cf788
100644
(file)
--- a/
src/tbm_bufmgr.c
+++ b/
src/tbm_bufmgr.c
@@
-1064,6
+1064,8
@@
tbm_bufmgr_server_init(void)
int
tbm_bufmgr_set_bo_lock_type(tbm_bufmgr bufmgr, tbm_bufmgr_bo_lock_type bo_lock_type)
{
+ _tbm_bufmgr_mutex_lock();
+
TBM_BUFMGR_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(gBufMgr), 0);
TBM_BUFMGR_RETURN_VAL_IF_FAIL(bufmgr == gBufMgr, 0);
@@
-1071,6
+1073,8
@@
tbm_bufmgr_set_bo_lock_type(tbm_bufmgr bufmgr, tbm_bufmgr_bo_lock_type bo_lock_t
TBM_INFO("The bo_lock_type of the bo is %d\n", bo_lock_type);
+ _tbm_bufmgr_mutex_unlock();
+
return 1;
}