mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhitao Li <zhitaoli...@gmail.com>
Subject Re: Review Request 62911: Added a ReadWriteLock to libprocess.
Date Thu, 19 Oct 2017 16:24:35 GMT

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

(Updated Oct. 19, 2017, 4:24 p.m.)


Review request for mesos, Benjamin Hindman, Benjamin Mahler, Gilbert Song, and Jason Lai.


Changes
-------

Review comments from @bmahler.


Summary (updated)
-----------------

Added a ReadWriteLock to libprocess.


Bugs: MESOS-8075
    https://issues.apache.org/jira/browse/MESOS-8075


Repository: mesos


Description (updated)
-------

The `ReadWriteLock` class is similar to `Mutex`, but allows extra concurrency if
some actions can be performed concurrently safely while certain actions
require full mutual exclusive.

This implementation guarantees starvation free for `write_lock()` by queuing up
`read_lock()` when some `write_lock()` is already in queue.


Diffs (updated)
-----

  3rdparty/libprocess/include/Makefile.am 94c7a722aab6c36174f117f0b6239cb988e476a9 
  3rdparty/libprocess/include/process/rwlock.hpp PRE-CREATION 


Diff: https://reviews.apache.org/r/62911/diff/4/

Changes: https://reviews.apache.org/r/62911/diff/3-4/


Testing
-------


Thanks,

Zhitao Li


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message