Adar Dembo has submitted this change and it was merged. Change subject: rw_mutex: add configurable priority ......................................................................
rw_mutex: add configurable priority The glibc implementation of pthread rwlocks exposes priorities that can help if avoiding reader or writer starvation is desirable. I have a use case for the latter, so let's expose the priorities in our wrapper. Note: pthread rwlock priorities don't exist on macOS, which is why they're a "best effort". Change-Id: I16ba6cd041f126c94e63fa07a1e84c88db6778d7 Reviewed-on: http://gerrit.cloudera.org:8080/3603 Tested-by: Kudu Jenkins Reviewed-by: Todd Lipcon <[email protected]> Reviewed-by: Dan Burkert <[email protected]> --- M src/kudu/util/rw_mutex.cc M src/kudu/util/rw_mutex.h 2 files changed, 54 insertions(+), 0 deletions(-) Approvals: Dan Burkert: Looks good to me, approved Todd Lipcon: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/3603 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I16ba6cd041f126c94e63fa07a1e84c88db6778d7 Gerrit-PatchSet: 5 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Adar Dembo <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Dan Burkert <[email protected]> Gerrit-Reviewer: David Ribeiro Alves <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon <[email protected]>
