summaryrefslogtreecommitdiffstats
path: root/nci/jni/SyncEvent.h
diff options
context:
space:
mode:
authorEvan Chu <evanchu@broadcom.com>2012-08-17 10:41:21 -0400
committerMartijn Coenen <maco@google.com>2012-08-28 14:46:46 +0200
commitdfc52b4bafc435e72d25aaba736612352bfd0581 (patch)
tree8ce323c784992dd2f2177c87fec678d21a127df3 /nci/jni/SyncEvent.h
parentd1235cf7c2d0839264ccf90e9be7e19b66b58b6a (diff)
downloadpackages_apps_nfc-dfc52b4bafc435e72d25aaba736612352bfd0581.zip
packages_apps_nfc-dfc52b4bafc435e72d25aaba736612352bfd0581.tar.gz
packages_apps_nfc-dfc52b4bafc435e72d25aaba736612352bfd0581.tar.bz2
In SyncEvent class, only unlock mutex once
In SyncEvent class, only unlock mutex once. Change-Id: I0fb797c9e6e8ea793fd38abd72a0c2780a734e95
Diffstat (limited to 'nci/jni/SyncEvent.h')
-rw-r--r--nci/jni/SyncEvent.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/nci/jni/SyncEvent.h b/nci/jni/SyncEvent.h
index 5ab5d43..146b3ce 100644
--- a/nci/jni/SyncEvent.h
+++ b/nci/jni/SyncEvent.h
@@ -28,7 +28,6 @@ public:
*******************************************************************************/
~SyncEvent ()
{
- mMutex.unlock ();
}
@@ -59,7 +58,6 @@ public:
void wait ()
{
mCondVar.wait (mMutex);
- end ();
}
@@ -76,7 +74,6 @@ public:
bool wait (long millisec)
{
bool retVal = mCondVar.wait (mMutex, millisec);
- end ();
return retVal;
}
@@ -93,7 +90,6 @@ public:
void notifyOne ()
{
mCondVar.notifyOne ();
- end ();
}