aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunita Nadampalli2015-01-30 10:17:17 -0600
committerSunita Nadampalli2015-01-30 10:17:17 -0600
commit74ce64ad788921b1db9d9ebee0562db57caa95e7 (patch)
tree90bf1d24cce31b071e7d3c6e8e19302dd0d1617c /libdce.c
parente7cf246bec2118890021e1aeb66757f5ad894923 (diff)
downloadrepo-libdce-74ce64ad788921b1db9d9ebee0562db57caa95e7.tar.gz
repo-libdce-74ce64ad788921b1db9d9ebee0562db57caa95e7.tar.xz
repo-libdce-74ce64ad788921b1db9d9ebee0562db57caa95e7.zip
libdce: Add mutex protection for dce_buf_lock/dce_buf_unlock
The dce_buf_lock and dce_buf_unlock are meant for any video buffer locking and unlocking with the GEM allocator. Currently, these methods are being called from libdce apis with ipc mutex held. In order to enable other media components to make use of these buffer lock/unlock apis, explicit ipc mutex protection is added. Change-Id: I6d63a4cdcffec62a346341ff515a7ebb03dea8c0 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Diffstat (limited to 'libdce.c')
-rw-r--r--libdce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdce.c b/libdce.c
index 6b664bd..881516e 100644
--- a/libdce.c
+++ b/libdce.c
@@ -50,7 +50,7 @@
50/* Handle used for Remote Communication */ 50/* Handle used for Remote Communication */
51MmRpc_Handle MmRpcHandle[MAX_REMOTEDEVICES] = { NULL}; 51MmRpc_Handle MmRpcHandle[MAX_REMOTEDEVICES] = { NULL};
52Engine_Handle gEngineHandle[MAX_INSTANCES][MAX_REMOTEDEVICES] = { {NULL, NULL}}; 52Engine_Handle gEngineHandle[MAX_INSTANCES][MAX_REMOTEDEVICES] = { {NULL, NULL}};
53static pthread_mutex_t ipc_mutex = PTHREAD_MUTEX_INITIALIZER; 53pthread_mutex_t ipc_mutex = PTHREAD_MUTEX_INITIALIZER;
54static int __ClientCount[MAX_REMOTEDEVICES] = {0}; 54static int __ClientCount[MAX_REMOTEDEVICES] = {0};
55int dce_debug = DCE_DEBUG_LEVEL; 55int dce_debug = DCE_DEBUG_LEVEL;
56const String DCE_DEVICE_NAME[MAX_REMOTEDEVICES]= {"rpmsg-dce","rpmsg-dce-dsp"}; 56const String DCE_DEVICE_NAME[MAX_REMOTEDEVICES]= {"rpmsg-dce","rpmsg-dce-dsp"};