proxygen
folly::futures::detail::SpinLock Struct Reference

SpinLock is and must stay a 1-byte object because of how Core is laid out. More...

#include <Core.h>

Inheritance diagram for folly::futures::detail::SpinLock:
folly::MicroSpinLock

Public Member Functions

 SpinLock ()
 

Additional Inherited Members

- Private Types inherited from folly::MicroSpinLock
enum  { FREE = 0, LOCKED = 1 }
 
- Private Member Functions inherited from folly::MicroSpinLock
void init () noexcept
 
bool try_lock () noexcept
 
void lock () noexcept
 
void unlock () noexcept
 
- Private Attributes inherited from folly::MicroSpinLock
uint8_t lock_
 

Detailed Description

SpinLock is and must stay a 1-byte object because of how Core is laid out.

Definition at line 65 of file Core.h.

Constructor & Destructor Documentation

folly::futures::detail::SpinLock::SpinLock ( )
inline

Definition at line 66 of file Core.h.

References folly::MicroSpinLock::lock(), and folly::MicroSpinLock::unlock().

66 : MicroSpinLock{0} {}

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