diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2023-09-15 15:52:11 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-09-15 15:53:17 -0700 |
commit | 2c1e7e3c5c71891735f21302fb339e0d6edcd94c (patch) | |
tree | 3c50c095d1b30c335eea48c4f27928acedfb2964 /absl/synchronization/mutex.h | |
parent | 9356553a43ae09ba7760fe7051d7100a1d8efd0b (diff) | |
download | abseil-2c1e7e3c5c71891735f21302fb339e0d6edcd94c.tar.gz abseil-2c1e7e3c5c71891735f21302fb339e0d6edcd94c.tar.bz2 abseil-2c1e7e3c5c71891735f21302fb339e0d6edcd94c.zip |
absl: remove special case for timed CondVar waits
CondVar wait morhping has a special case for timed waits.
The code goes back to 2006, it seems that there might have
been some reasons to do this back then.
But now it does not seem to be necessary.
Wait morphing should work just fine after timed CondVar waits.
Remove the special case and simplify code.
PiperOrigin-RevId: 565798838
Change-Id: I4e4d61ae7ebd521f5c32dfc673e57a0c245e7cfb
Diffstat (limited to 'absl/synchronization/mutex.h')
-rw-r--r-- | absl/synchronization/mutex.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h index 1fb6cca1..d146b066 100644 --- a/absl/synchronization/mutex.h +++ b/absl/synchronization/mutex.h @@ -974,7 +974,6 @@ class CondVar { private: bool WaitCommon(Mutex* mutex, synchronization_internal::KernelTimeout t); void Remove(base_internal::PerThreadSynch* s); - void Wakeup(base_internal::PerThreadSynch* w); std::atomic<intptr_t> cv_; // Condition variable state. CondVar(const CondVar&) = delete; CondVar& operator=(const CondVar&) = delete; |