mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhitao Li <zhitaoli...@gmail.com>
Subject Review Request 62911: Added a RWMutex to libprocess.
Date Wed, 11 Oct 2017 23:16:57 GMT

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

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


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


Repository: mesos


Description
-------

The `RWMutex` 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 `lock()` by queuing up
`rlock()` when some `lock()` is already in queue.


Diffs
-----

  3rdparty/libprocess/include/process/rwmutex.hpp PRE-CREATION 


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


Testing
-------


Thanks,

Zhitao Li


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