Commit 424e569f authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

cut legacy friends of SharedMutex

Summary: They were used as extension points at one time, but no longer.

Reviewed By: Alfus

Differential Revision: D28987212

fbshipit-source-id: e9d59e5cf9641323657314b088eef516ce068112
parent ff7ab9db
...@@ -1578,18 +1578,6 @@ class SharedMutexImpl : std::conditional_t< ...@@ -1578,18 +1578,6 @@ class SharedMutexImpl : std::conditional_t<
friend class UpgradeHolder; friend class UpgradeHolder;
SharedMutexImpl* lock_; SharedMutexImpl* lock_;
}; };
// Adapters for Synchronized<>
friend void acquireRead(SharedMutexImpl& lock) { lock.lock_shared(); }
friend void acquireReadWrite(SharedMutexImpl& lock) { lock.lock(); }
friend void releaseRead(SharedMutexImpl& lock) { lock.unlock_shared(); }
friend void releaseReadWrite(SharedMutexImpl& lock) { lock.unlock(); }
friend bool acquireRead(SharedMutexImpl& lock, unsigned int ms) {
return lock.try_lock_shared_for(std::chrono::milliseconds(ms));
}
friend bool acquireReadWrite(SharedMutexImpl& lock, unsigned int ms) {
return lock.try_lock_for(std::chrono::milliseconds(ms));
}
}; };
using SharedMutexReadPriority = SharedMutexImpl<true>; using SharedMutexReadPriority = SharedMutexImpl<true>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment