summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunita Nadampalli2013-09-26 16:26:59 -0500
committerSunita Nadampalli2013-09-26 16:26:59 -0500
commitffb5c1de22eefd33ec0694c5590eb6fb50bd1771 (patch)
tree969befa5ddf3228a430d161e704292c32eba3923 /libdce.h
parent4f74566a123093d4454c1d969ce340b33552e78b (diff)
downloadhardware-ti-libdce-ffb5c1de22eefd33ec0694c5590eb6fb50bd1771.tar.gz
hardware-ti-libdce-ffb5c1de22eefd33ec0694c5590eb6fb50bd1771.tar.xz
hardware-ti-libdce-ffb5c1de22eefd33ec0694c5590eb6fb50bd1771.zip
[LIBDCE] Replace Semaphore with Mutex
This patch reverts the below commit: "abd5152ca071e552954571862635666297221177 [LIBDCE] Mutual exclusion of Engine_open and Engine_close" Description: ----------- (1) The current semaphore logic doesn't protect the engine open/close calls across processes. It is confirmed on QNX that two instances of dce test app is creating two different instances of semaphore. Hence, other than the delay the current semaphore doesn't add any protection for the mutli process <-> multi instance scenarios. (2) For the single process <-> multi instance scenario, it does protect the engine open/close calls, but it fails due to lack of reference counting And also, it is not sure why we need to protect the entire engine_open/close. Hence the current semaphore is replaced with mutex to protect the ipc handle create/close. Change-Id: Ibdad089bdd39cd5afc813373e84bf91fa8920860 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Diffstat (limited to 'libdce.h')
-rw-r--r--libdce.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libdce.h b/libdce.h
index ea63e66..9377892 100644
--- a/libdce.h
+++ b/libdce.h
@@ -54,8 +54,7 @@ typedef enum dce_error_status {
54 DCE_EIPC_CREATE_FAIL = -4, 54 DCE_EIPC_CREATE_FAIL = -4,
55 DCE_EIPC_CALL_FAIL = -5, 55 DCE_EIPC_CALL_FAIL = -5,
56 DCE_EINVALID_INPUT = -6, 56 DCE_EINVALID_INPUT = -6,
57 DCE_EOMAPDRM_FAIL = -7, 57 DCE_EOMAPDRM_FAIL = -7
58 DCE_ESEMAPHORE_FAIL = -8
59} dce_error_status; 58} dce_error_status;
60 59
61/***************************** Memory Allocation/Free APIs *****************************/ 60/***************************** Memory Allocation/Free APIs *****************************/