proxygen
|
#include <RWSpinLock.h>
Public Member Functions | |
UpgradedHolder (RWSpinLock *lock) | |
UpgradedHolder (RWSpinLock &lock) | |
UpgradedHolder (WriteHolder &&writer) | |
UpgradedHolder (UpgradedHolder &&other) noexcept | |
UpgradedHolder & | operator= (UpgradedHolder &&other) |
UpgradedHolder (const UpgradedHolder &other)=delete | |
UpgradedHolder & | operator= (const UpgradedHolder &other)=delete |
~UpgradedHolder () | |
void | reset (RWSpinLock *lock=nullptr) |
void | swap (UpgradedHolder *other) |
Private Attributes | |
RWSpinLock * | lock_ |
Friends | |
class | WriteHolder |
class | ReadHolder |
Definition at line 383 of file RWSpinLock.h.
|
inlineexplicit |
Definition at line 385 of file RWSpinLock.h.
References folly::RWSpinLock::ReadHolder::lock_, and folly::RWSpinLock::lock_upgrade().
|
inlineexplicit |
Definition at line 391 of file RWSpinLock.h.
References folly::RWSpinLock::ReadHolder::lock_, and folly::RWSpinLock::lock_upgrade().
|
inlineexplicit |
Definition at line 395 of file RWSpinLock.h.
References folly::RWSpinLock::ReadHolder::lock_, and folly::RWSpinLock::unlock_and_lock_upgrade().
|
inlinenoexcept |
Definition at line 403 of file RWSpinLock.h.
|
delete |
|
inline |
Definition at line 416 of file RWSpinLock.h.
References folly::RWSpinLock::ReadHolder::lock_, and folly::RWSpinLock::unlock_upgrade().
|
inline |
Definition at line 407 of file RWSpinLock.h.
References folly::RWSpinLock::ReadHolder::lock_, folly::RWSpinLock::ReadHolder::operator=(), folly::RWSpinLock::ReadHolder::swap(), folly::f14::swap(), and folly::RWSpinLock::ReadHolder::UpgradedHolder.
|
delete |
|
inline |
Definition at line 422 of file RWSpinLock.h.
References folly::RWSpinLock::lock(), folly::RWSpinLock::ReadHolder::lock_, folly::RWSpinLock::lock_upgrade(), and folly::RWSpinLock::unlock_upgrade().
|
inline |
Definition at line 435 of file RWSpinLock.h.
References folly::RWSpinLock::ReadHolder::lock_, lock_, folly::RWSpinLock::ReadHolder::swap(), and folly::f14::swap().
|
friend |
Definition at line 442 of file RWSpinLock.h.
|
friend |
Definition at line 441 of file RWSpinLock.h.
|
private |
Definition at line 443 of file RWSpinLock.h.
Referenced by swap().