From 04edad3801ec0b1091df9157b879d8f6a50c5036 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 12 Dec 2017 11:23:51 -0800 Subject: Changes imported from Abseil "staging" branch: - 46a4bd582619bfc4799c1a907316e914ed0c0105 Fixes to mutex_nonprod. Apparently this has never built.... by Greg Falcon - 4bcf6f013aeee53057527d70100de8535aec9b93 Add some comments to copts.bzl by Tom Manshreck - 54cf717b1c5dfb814721f92a8eb9df5587f5f758 Internal change by Abseil Team - d1f1c7e6e61358300963b7bd50c203740a49297d Eliminate kFast{UInt,Int}{32,64}ToBufferSize constants by Jorg Brown GitOrigin-RevId: 46a4bd582619bfc4799c1a907316e914ed0c0105 Change-Id: I129b6b3d27d9ae2c6eb21d6e44a52d10399ef8aa --- absl/synchronization/internal/mutex_nonprod.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'absl/synchronization/internal/mutex_nonprod.cc') diff --git a/absl/synchronization/internal/mutex_nonprod.cc b/absl/synchronization/internal/mutex_nonprod.cc index 94be54b8..62d19816 100644 --- a/absl/synchronization/internal/mutex_nonprod.cc +++ b/absl/synchronization/internal/mutex_nonprod.cc @@ -231,6 +231,11 @@ bool Mutex::LockWhenWithTimeout(const Condition& cond, absl::Duration timeout) { cond, synchronization_internal::DeadlineFromTimeout(timeout)); } +void Mutex::ReaderLockWhen(const Condition& cond) { + ReaderLock(); + Await(cond); +} + bool Mutex::ReaderLockWhenWithTimeout(const Condition& cond, absl::Duration timeout) { return LockWhenWithTimeout(cond, timeout); -- cgit v1.2.3