mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhitao Li <>
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:

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

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


Review comments from @bmahler.

Summary (updated)

Added a ReadWriteLock to libprocess.

Bugs: 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/ 94c7a722aab6c36174f117f0b6239cb988e476a9 
  3rdparty/libprocess/include/process/rwlock.hpp PRE-CREATION 





Zhitao Li

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