proxygen
folly::SpinLockGuardImpl< LOCK > Class Template Reference

#include <SpinLock.h>

Inheritance diagram for folly::SpinLockGuardImpl< LOCK >:

Public Member Functions

FOLLY_ALWAYS_INLINE SpinLockGuardImpl (LOCK &lock) noexcept(noexcept(lock.lock()))
 
FOLLY_ALWAYS_INLINE ~SpinLockGuardImpl ()
 

Private Attributes

LOCK & lock_
 

Detailed Description

template<typename LOCK>
class folly::SpinLockGuardImpl< LOCK >

Definition at line 64 of file SpinLock.h.

Constructor & Destructor Documentation

template<typename LOCK>
FOLLY_ALWAYS_INLINE folly::SpinLockGuardImpl< LOCK >::SpinLockGuardImpl ( LOCK &  lock)
inlineexplicitnoexcept

Definition at line 66 of file SpinLock.h.

References folly::MicroSpinLock::lock(), and folly::SpinLock::lock_.

68  : lock_(lock) {
69  lock_.lock();
70  }
auto lock(Synchronized< D, M > &synchronized, Args &&...args)
template<typename LOCK>
FOLLY_ALWAYS_INLINE folly::SpinLockGuardImpl< LOCK >::~SpinLockGuardImpl ( )
inline

Definition at line 71 of file SpinLock.h.

References folly::SpinLock::lock_, and folly::MicroSpinLock::unlock().

71  {
72  lock_.unlock();
73  }

Member Data Documentation

template<typename LOCK>
LOCK& folly::SpinLockGuardImpl< LOCK >::lock_
private

Definition at line 76 of file SpinLock.h.


The documentation for this class was generated from the following file: