You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/04/16 19:12:39 UTC

git commit: Fixed lock issue in src/common/lock.cpp.

Repository: mesos
Updated Branches:
  refs/heads/master 316bac66d -> fbb5f9db9


Fixed lock issue in src/common/lock.cpp.

Review: https://reviews.apache.org/r/20404


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/fbb5f9db
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/fbb5f9db
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/fbb5f9db

Branch: refs/heads/master
Commit: fbb5f9db9387e3fc8952673bf4599f8d35cd6663
Parents: 316bac6
Author: Chengwei Yang <ch...@gmail.com>
Authored: Wed Apr 16 10:11:51 2014 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Wed Apr 16 10:11:51 2014 -0700

----------------------------------------------------------------------
 src/common/lock.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/fbb5f9db/src/common/lock.cpp
----------------------------------------------------------------------
diff --git a/src/common/lock.cpp b/src/common/lock.cpp
index 11c8e8c..bb8ea3a 100644
--- a/src/common/lock.cpp
+++ b/src/common/lock.cpp
@@ -40,8 +40,8 @@ void Lock::lock()
 void Lock::unlock()
 {
   if (locked) {
-    pthread_mutex_unlock(mutex);
     locked = false;
+    pthread_mutex_unlock(mutex);
   }
 }