-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/20404/
-----------------------------------------------------------

Review request for mesos, Benjamin Hindman and Vinod Kone.


Repository: mesos-git


Description
-------

Fix lock issue in src/common/lock.cpp

The Lock class used as a lock itself to protect other resources,
however, its internal locked variable is changed without lock
protection in the unlock member function.

To protect the locked variable, it should change it before release the
mutex. So the Lock not only protect the others but itself internal state
too.

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


Diffs
-----

  src/common/lock.cpp 11c8e8c50d806271c36c2ec20633acf06447c37f 

Diff: https://reviews.apache.org/r/20404/diff/


Testing
-------

make check passed.


Thanks,

Chengwei Yang

Reply via email to